On Thu, Jun 19, 2008 at 4:54 AM, C. Titus Brown <[EMAIL PROTECTED]> wrote: > > More generally, I've never understood why some people insist that > certain features make Ruby better for DSLs -- are code blocks really > that important to DSLs? Or is it just the lack of parens??
Code blocks let Ruby-based DSLs "do" flow control, while the lack of parens make ordinary method names look like keywords. These things are a mixed bag -- on the one hand, they can certainly make the resulting DSL a lot easier to read. On the other, they seem to encourage a lot of over-the-top cleverness in terms of creating "fluent interfaces". I fail to see much value in being able to write code that says "7.seconds.ago". -- Curt Hagenlocher [EMAIL PROTECTED] _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com