Mike Austin
11/21/2023, 11:57 PMyoz
12/01/2023, 10:35 PM'(expression)
syntax) but I love how concise and powerful it looks.yoz
12/01/2023, 10:35 PMMike Austin
12/01/2023, 11:23 PM'foo
is literally a StringLiteral AST node. I hijacked it to support calling methods so you can write 'sin 30
or '(toFixed 2) 5
to call methods.
I've only really used it for this purpose (calling methods), so maybe I should just limit it to that. You can say 'foo == 'foo
, which is true, which can be used like atoms/symbols in other languages.