News for hackers. Stuff that matters.
Re:Scala Considered Harmful For Large Projects? by rtaycher on Friday February 18, 2011 @01:20AM (#2234478)
I personally dislike symbol to proc for a reason I can't fully put into words so I would say widgets.any?{|x| x.can_frobnicate?}
Re:Scala Considered Harmful For Large Projects? by kscaldef on Friday February 18, 2011 @12:32PM (#2236345)
it's certainly a little syntactically ugly. I'd much prefer it if functions were first-class and I could write something like "widgets.any? can_frobnicate?" or "any widgets can_frobnicate?".