How to write JS like a Lisp? I heard modern Javascript is very in favour of functional programming...

How to write JS like a Lisp? I heard modern Javascript is very in favour of functional programming, and it was modelled after Lisp

Attached: JavaScript-logo.png (1052x1052, 10K)

Other urls found in this thread:

drboolean.gitbooks.io/mostly-adequate-guide-old/content/
mostly-adequate.gitbooks.io/mostly-adequate-guide/ch01.html#introductions
twitter.com/NSFWRedditVideo

"javathcript"

Kek

kek and /thread

Attached: 1527299562539.jpg (400x460, 36K)

ClojureScript

You don't write JS like a lisp. You can write JS functionally (see drboolean.gitbooks.io/mostly-adequate-guide-old/content/ ), but if you want to actually write like a lisp you'll need to learn something like Clojure/ClojureScript

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/mostly-adequate-guide/ch01.html#introductions

Clearly all Turing complete languages are equivalent and everyone should be writing things in assembly, you moron.

>google

I would if not for muh portability