News for hackers. Stuff that matters.
Re:John Carmack working on Scheme as a VR scripting language by klibertp on Wednesday July 01, 2015 @01:55PM (#9813813)
To expand on this a little, here is a thing that you can't translate to most programming languages. By defining a simple, pattern-based macro we can get much closer to the Dart version:

   (func: hello() => (displayln "Hello world"))
   (hello)
All you need to do this - to change the language syntax to look like that - is to write this:

    (define-syntax func:
      (syntax-rules (=>)
         [(_ name (formal ...) => expr ...)
          (define name (lambda (formal ...) expr ...))]))

There are no comments on this comment yet.