OCaml's syntax is interesting: there are very few characters different between variable and function declarations:
let foo = bar 123
vs
let foo x = bar x
Taking the idea of a lisp-1 to even the syntax!
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.
Wilfred Hughes
Shared words: lisp, syntax, variable, let, foo, bar
Score: 172.6
@nihilazo@eli_oat@technomancy@csepp The thing I like about lisps is the ability to build functions around snippets until I've written a whole program. It's interactive and pleasant.
I agree that the advocacy is distracting. The book Let Over Lambda has interesting ideas but it's *so* convinced that lisp is always the best.
I sometimes find it hard to read too. It's easy for different patterns to look visually similar.
Wilfred Hughes
Shared words: lisp, interesting, different, function, let, idea
Score: 150.7
What piece of syntax has the most different meanings?
I realised today that `as` is extremely overloaded. It can be used for aliasing imports (Python), type casts (Rust), binding pattern match variables (OCaml), type assertions (Hack) and probably many others.