4 ms·
I guess you mean you prefer prefix rather than infix notation. Do you have any specific technical reasons for this?
by chrispeel 7y ago
I guess you mean you prefer prefix rather than infix notation. Do you have any specific technical reasons for this?
- jacobwilliamroy 7y agoI dislike operator precedence, and I also think that putting all the plus signs in between the addends is a waste time. I like being able to do this: (+ 1 2 3 4 5)
- eigenspace 7y agoGreat news: you never need to use an infix operator in julia. All infix operators are also regular functions, so 1 + 2 + 3 + 4 + 5 is actually the same as +(1, 2, 3, 4, 5) though there's still commas between the arguments.
- jacobwilliamroy 7y agoYeah, those commas are going to drive me crazy. LISP has ruined me.
- eigenspace 7y agoI mostly got used to them, but I do enjoy playing around with https://github.com/swadey/LispSyntax.jl https://github.com/swadey/LispSyntax.jl for more directly lispy sytanx in Julia.
- jacobwilliamroy 7y ago>REPL mode Lisp Mode initialized. >Lisp Mode I wish every language had Lisp Mode, haha
- eigenspace 7y agoAgreed. Not all languages are powerful enough to offer a lisp mode that'd be sufficiently lispy though. The whole point of LispSyntax.jl is that it's lisp syntax while still respecting julia semantics, which are basically just lisp semantics. Of course, LispSyntax.jl still has some glaring omissions that someone should really get around to implementing.