From: Christian Neukirchen Date: 2005-11-18T02:55:06+09:00 Subject: Re: Keyword arguments like grandma makes 'em "Trans" writes: > I'm messing around with some methods trying to figure out how to offer > all the functionality I want in a clean interface and I stumbled across > an idea that may be better for keyword arguments. > > Instead of > > grab 'x', :from => 'y' > > I really wanted to write: > > grab 'x' from 'y' > > I think everyone would prefer such a syntax if it can be done. Since > commas are used to deliminate arguments normally, it seems like it > should be possible to use parameter keywords as delimeters too. Without trying to get personal or offensive, I'd recommend you to try to implement your ideas at first. ;-) I'm currently designing a language that will allow for that syntax, but it is designed with that in mind. I don't want to imagine the effort it would take to do above in Ruby as it stands now. > T. -- Christian Neukirchen http://chneukirchen.org