3 ms·
I've recently seen Julia and Elixir mentioned in language discussions about homoiconicity. They're technically not--in the same sense as much as Lisp's s-expres
by karmakaze 6y ago
I've recently seen Julia and Elixir mentioned in language discussions about homoiconicity. They're technically not--in the same sense as much as Lisp's s-expressions, but are convenient to do run-time code inspection and generation without much fuss which is the pragmatic side of it.
- cbkeller 6y agoWhile normal Julia syntax is indeed arguably not quite homoiconic in the same way that Lisp s-expressions are (a good discussion of the issue by Stefan Karpinski here: [1]), it turns out there is a little-known built-in s-expression syntax for Julia (which can be more-or-less enabled as a REPL mode in only a handful of lines [2]). [1] https://stackoverflow.com/questions/31733766/in-what-sense-are-languages-like-elixir-and-julia-homoiconic?answertab=active#tab-top https://stackoverflow.com/questions/31733766/in-what-sense-a... [2] https://gist.github.com/brenhinkeller/44051118c2f9d18b26dc765466f749ba https://gist.github.com/brenhinkeller/44051118c2f9d18b26dc76...