3 ms·
I tried the example code in cygwin/clisp and it doesn't work. Way to come up with examples. At least mention which version it does work with?
by lninyo 15y ago
I tried the example code in cygwin/clisp and it doesn't work. Way to come up with examples. At least mention which version it does work with?
- spacemanaki 15y agoThe examples aren't valid Lisp or Scheme. "read" takes an input port not a string, as someone else mentioned, so you should replace it with "read-from-string" in Common Lisp or something like "(read (string->input-port "(1 (0) 1 (0) 0)"))" in Scheme. The second and third block of code is Scheme, not CL, so it won't work in clisp at all.
- lninyo 15y agoThank you for taking the time to explain. In my opinion, these types off attitudes are what are causing beautiful languages to die horrible deaths. The blog post extolls the virtues of "Lisp", but fails to mention which dialect. Extremely off-putting to newcomers if I may say so. At least put a tl;dr up top saying "This is for experts, noobs GTFO!" ...
- apgwoz 15y agoI believe the examples are in "outlet" the dude's lisp->js compiler (https://github.com/jlongster/outlet https://github.com/jlongster/outlet)