On Friday, March 2, 2012 4:21:39 PM UTC-5, eMxyzptlk wrote:
>
> Just taking a long breath to answer you, this syntax change is not 
> pointless, it's a preparation for syntax like this:
>
> some_method(name 'bob', age: 25)
>
> in some_methods, the arguments is not a *hash* but they are named params..
>
> Anyway, before this becomes a flame war again, post to rubyonrails-talk or 
> ruby ML/IRC
>
> Wael
>

Isn't "name 'bob'" the syntax for passing "bob" as an argument into the 
"name" method? Or has that all changed too?

If I saw "name 'bob'", I would think that there's a method named "name" 
defined somewhere.

def name(str)
  # do something with str
end


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-core/-/mlPar2VoxH0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to