4 ms·
Great 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 a
by eigenspace 7y ago
Great 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.