How to write JS like a Lisp? I heard modern Javascript is very in favour of functional programming, and it was modelled after Lisp
How to write JS like a Lisp? I heard modern Javascript is very in favour of functional programming...
"javathcript"
Kek
kek and /thread
ClojureScript
You don't write JS like a lisp. You can write JS functionally (see drboolean.gitbooks.io
Don't know about the lisp part, but if you want to use JS the FP way, basically:
Just pure functions for everything non I/O related.
Everything I/O related should be wrapped on an async function.
Lol'd at this
Just use a real functional language like Haskell
does javascript have lisp-like macros?
>How to write JS like a Lisp? I heard modern Javascript is very in favour of functional programming, and it was modelled after Lisp
why the fuck would you want to?
lisp is garbage.
thinking js is a lisp is sort of like having a mental disorder
write a browser that runs guile
sub blubber
>posting a book that uses ES5 to write functional JS
ups meant to quote the post above
You can't. You can't mimic a more powerful language with a less powerful one, and Lisp is the most powerful language.
>you can't mimic a context free language with another context free language.
jesus fuck retard.
>being incapable of extrapolating concepts
>being unable to google
How Jow Forums has fallen.
OP posted old version
mostly-adequate.gitbooks.io
Clearly all Turing complete languages are equivalent and everyone should be writing things in assembly, you moron.
I would if not for muh portability