That's fine, but it seems strange to promote a language because one of its features lets you work around its primary objective.
*-- Russ Abbott* *_____________________________________________* *** Professor, Computer Science* * California State University, Los Angeles* * My paper on how the Fed can fix the economy: ssrn.com/abstract=1977688* * Google voice: 747-*999-5105 Google+: plus.google.com/114865618166480775623/ * vita: *sites.google.com/site/russabbott/ CS Wiki <http://cs.calstatela.edu/wiki/> and the courses I teach *_____________________________________________* On Mon, Feb 25, 2013 at 2:44 PM, [email protected] <[email protected]>wrote: > Russ wrote: > > "But it is (obviously) functional, which > means no side effects. The primary purpose of a language like JavaScript is > to produce side-effects that change the DOM and what is displayed by a > browser. How does Fay get around that seeming incompatibility in > objectives?" > > Haskell deals with side-effects using Monads. Las Vegas is like a Monad: > "What happens in Vegas, stays in Vegas." The idea is your DOM would be an > opaque type that could be returned by a function, but its state is not > revealed. In this way, there are no side effects outside of the global > object that is returned. > > http://hackage.haskell.org/package/fay-dom > http://www.haskell.org/haskellwiki/Monad > > -------------------------------------------------------------------- > myhosting.com - Premium Microsoft® Windows® and Linux web and application > hosting - http://link.myhosting.com/myhosting > > > > ============================================================ > FRIAM Applied Complexity Group listserv > Meets Fridays 9a-11:30 at cafe at St. John's College > to unsubscribe http://redfish.com/mailman/listinfo/friam_redfish.com >
============================================================ FRIAM Applied Complexity Group listserv Meets Fridays 9a-11:30 at cafe at St. John's College to unsubscribe http://redfish.com/mailman/listinfo/friam_redfish.com
