> > As for the OO vs functional . . . a web server is a function from a > > request to a response. How is that functional view any less natural > > than an OO view? > > I think someone steeped in the controller/action viewpoint (a la > Rails) would disagree: they see requests as being parameterized > actions taken on/by controllers, with those requests being described > by URI templates and routed by a route specification.
The controller/action viewpoint could as well be described as a hashmap of routes to functions, all of which accept an optional map of parameters, and all of which return an http response. For me at least, this makes for a clearer mental picture than 'personifying' the pattern with objects. > Me, I'm happy with the functional approach :) In complete agreement here :) Cheers, Andy -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en