2 ms·
I'm not sure haskell won here. I think maybe programming with monads won. No, really. Web programming and continuation monads seem to have really it it off tog
by KirinDave 17y ago
I'm not sure haskell won here. I think maybe programming with monads won.
No, really. Web programming and continuation monads seem to have really it it off together. When you add them to another language, you get similar results (e.g., http://intensivesystems.net/tutorials/web_sessions.html http://intensivesystems.net/tutorials/web_sessions.html).
- panic 17y agoI'd be interested to hear if anyone has solved the problem of embedding a series of pages inside of another (in the sense of Seaside) in a pure functional way. In other words, here's my challenge: write http://www.seaside.st/about/examples/multicounter http://www.seaside.st/about/examples/multicounter using the same monadic style.
- nostrademons 17y agoFor pure shortness, I think HTML + JavaScript won here: http://arclanguage.org/item?id=979 http://arclanguage.org/item?id=979 The Haskell example is interesting, though, because it shows a working webapp in Haskell, and it's not even that scary.
- KirinDave 17y agoExcept that these two code examples do two very different things. The Haskell version actually uses a continuation to run multiple requests The Javascript version modifies local mutable state. The Haskell version does it via server interaction, which makes it much more useful to modern web apps.