Re:A DSL in 5 Languages: Ruby, Python, PHP, C#, Java
by kjbekkelund on Tuesday August 03, 2010 @06:38PM
(#1573006)
What about doing it like this in Ruby:
It might be more difficult not having the specific methods (in, starts_with_ ends_with, and so on), but I think it's quite readable. If we don't want the regexps, we could go for a MySQL style '%.com' and 'a2d%' or something similar.
[ Parent
| on HN ]
Re:A DSL in 5 Languages: Ruby, Python, PHP, C#, Java
by koenigdavidmj on Wednesday August 04, 2010 @02:21AM
(#1573812)
They said above that they were turning the conditions into XML in the request. That's one of the reasons why C# expression trees were out.