simple racket program

racket-logo

#lang racket

(define (reed pos blog)
  (printf "Reed~v ~a\n" pos (blog)))

(let ([this-be (λ (reed blog) (reed 's  blog))])

(define (blog) "blog")

(this-be reed blog))
> Output: Reed's blog

One of the coolest things about racket lang is that you can specify a wide variety of languages. The program above uses the default racket lang but there are lots to choose from such as a lazy derivation or racket with a type checker. If you can get over all of the parentheses you will quickly find out that it is one of the most simple, concise and powerful languages you have ever used.

comments powered by Disqus