3 ms·
How about this: Ruby's syntactic flexibility and semantic model mean that many cases handled by a change to the language spec or delegating to another language
by jimbokun 17y ago
How about this:
Ruby's syntactic flexibility and semantic model mean that many cases handled by a change to the language spec or delegating to another language (XML config files, for example) can be cleanly handled in Ruby itself. The end result is often something that looks like a little language for a specific task, such as Rake, Rails, etc. (I'm not a Ruby programmer, so I hope those are good examples.)
So with Ruby, there are very few cases where writing a custom grammar or parser is necessary. Ruby's flexibility gives you the ability to do things that might require a custom grammar or parser in other languages.
- draegtun 17y agoHowever even Jim Weirich doesn't like Rake being called a "DSL". I think Piers Cawley was dead on by calling things like this a Pidgin refs: * http://www.infoq.com/interviews/jim-weirich-discusses-rake http://www.infoq.com/interviews/jim-weirich-discusses-rake * http://www.bofh.org.uk/2007/08/08/domain-specific-pidgin http://www.bofh.org.uk/2007/08/08/domain-specific-pidgin