From: Mike Gold Date: 2009-01-13T15:37:31+09:00 Subject: Re: functional programming Gary Wright wrote: > I think it is worthwhile understanding different programming styles but > working against the grain of a language seems like a bad idea to me. Yet I have found small-scale use of functional concepts to be useful in ruby, what I have (perhaps confusingly) called functional-style-in-ruby (but not functional programming per se): liberal use of map, inject, etc; avoiding unnecessary re-assignments to the same variable; avoiding gratuitous side-effects; not caring about temporary objects (until an efficiency concern is proven). The same applies to programming in general. > Your specific suggestion that 'name()' could be syntactic sugar for > Proc#call introduces an ambiguity in the language that I find > disconcerting. There is no ambiguity because, as I mentioned, locals are determined at parse time. However notice I recanted the suggestion seven minutes later in the post which immediately followed, for similar reasons. I suspect that when a thread reaches a certain size, nobody actually reads it. -- Posted via http://www.ruby-forum.com/.