I really like Clojure's let syntax. It works well when you only have a single variable. In other lisps, this feels a little verbose:
(let ((my-var (foo)))
(bar foo))
I've seen a let1 macro used in books, but not in the wild.
miniblog.
Related Posts
Futhark's design is deliberately trying to stay simple to keep long term design sustainable.
The author also has an interesting discussion of relative versus absolute paths in import syntax, and how relative paths can make local analysis easier.
I'm trying to decide what program I should show on the home page of my PL.
Hello World is too simple to show much syntax. Fibonacci is OK but the reader may not know what print(fib(10)) should show.
Maybe print(greet("World")) is better? It gives you a function definition at least.
"After I linked difftastic, one of my friends immediately used difftastic to find a stealthy bug, five stars!"