Topher Cyll has written an outstanding article for Ruby Code & Style. "If It's Not Nailed Down, Steal It: Pattern Matching, S-Expressions, and Domain Specific Languages in Ruby." Summary: There's a whole world of language features that we sometimes miss out on as Rubyists, such as pattern matching, S-expressions, and external domain-specific languages. But the good news is that we can have them, too, as long as we're not afraid to steal a few things first. Take a gander, post some comments, and keep having fun with Ruby. A big thanks to Topher, and thanks also to the RC&S advisory board and editors for helping get this out. About RC&S: Ruby Code & Style is the premiere online zine by and for the Ruby community. We're always on the lookout for quality articles geared towards Ruby developers (and we're now able to pay the writers). If you have an idea you think you may want to write about, please drop me a line: ruby.code.and.style AT gmail DOT com  http://www.artima.com/rubycs/articles/patterns_sex... James B. Editor-in-Chief, Ruby Code & Style
on 2006-05-23 23:27
on 2006-05-23 23:36
On 5/23/06, James B. <firstname.lastname@example.org> wrote: > Topher Cyll has written an outstanding article for Ruby Code & Style. > > "If It's Not Nailed Down, Steal It: Pattern Matching, S-Expressions, and > Domain Specific Languages in Ruby." Not a comment on the article yet, as I haven't got that far in (what I've seen so far, looks great, though!). I did notice however that the something in the formatting engine is messing with some of the code samples. For example, a line that I assume should look like this: return 1 if n == 0 || n == 1 Looks instead like this: return 1 if n 0 || n 1 Just FYI... Jacob F.
on 2006-05-23 23:42
Jacob F. wrote: > > return 1 if n 0 || n 1 > :( Thanks! I'll go get that sorted out.
on 2006-05-23 23:42
Great article! Finally, I see what s-exps are about.
on 2006-05-24 07:20
On May 23, 2006, at 2:26 PM, James B. wrote: > Topher Cyll has written an outstanding article for Ruby Code & Style > . This is a terrific article. Thanks for sharing. James Edward G. II