A Proposal To Magically Remove 'params'
Brian Candler
B.Candler at pobox.com
Mon Sep 3 08:30:14 EDT 2007
On Mon, Sep 03, 2007 at 01:39:59PM +0200, ry dahl wrote:
> > I don't like the idea of my code having to be *parsed* to add magic
>
> 'parsed' isn't the right verb here. ParseTree isn't opening up the
> file, reading in a string, and parsing it. It just traverses the
> internal node structure that Ruby has already built up.
OK, I understand.
I'd be happier if Ruby had named parameter passing as a _standard_ feature
of the language. It's been talked about for years :-)
Since controller methods never take parameters normally, I guess that
handling the case of controller(foo,bar) differently from controller() is
fine. However I think the params hash should be kept exposed for those who
want to use it.
Regards,
Brian.
More information about the Merb-devel
mailing list