3 ms·
I'd say web's request -> response model is pretty well suited to functional programming. It seems popular amongst JavaScript programmers at the moment as well.
by GlennS 10y ago
I'd say web's request -> response model is pretty well suited to functional programming.
It seems popular amongst JavaScript programmers at the moment as well. React, which appears the current hotness, is based on making a functional interface to the DOM.
Although actually, I'd say the main reason to use a Lisp for web gunk is the macros rather than the functional programming. The tree structure maps very naturally onto HTML generation. There are some really nice libraries (in particular I'm familiar with Clojure libraries) which make the server-side part of a web app really neat. You can basically skip the whole 'templating' bit.