I find Ruby's argument lists (required args, optional args, an array, &block) kind of ad-hoc and kludgey.
Yeah, &block is a bit wierd. The alternative would be to just take the Proc object as a normal parameter, and then you'd have to have your trailing parenthesis after the final curly brace of your Proc object, which might look kinda bad given a multi line Proc.
Interesting article.
rizzix
Posted: Sat Jul 29, 2006 11:43 am Post subject: (No subject)
Did he mention Ruby library documentations suck?
Cervantes
Posted: Sat Jul 29, 2006 3:46 pm Post subject: (No subject)
rizzix wrote:
Did he mention Ruby library documentations suck?
No. He mentioned the topic of Ruby library documentation, though. It was under the 'mixed' category.
He says The Pickaxe is way better than average, that ri is not as good as perldoc or right clicking on anything in Netbeans, and that ruby-doc.org is good, even though it's incomplete, particularly because it gives you the source code for library methods, which gives you the deepest understanding of what the method does, and how.
Couldn't you have just read the article yourself? It's not very long.
rizzix
Posted: Tue Aug 01, 2006 7:25 am Post subject: (No subject)