Too small I think to post an actual RCR.
alias :this, :that
=> parse error, unexpected ‘,’
Can we get alias to handle a comma, please.
T.
Too small I think to post an actual RCR.
alias :this, :that
=> parse error, unexpected ‘,’
Can we get alias to handle a comma, please.
T.
On Sep 8, 2006, at 7:47 PM, Trans wrote:
Too small I think to post an actual RCR.
alias :this, :that
=> parse error, unexpected ‘,’Can we get alias to handle a comma, please.
T.
Use alias_method ?
I like the lack of the comma (and the need for :). Makes it clear
that it’s syntax.
alias this that
Logan C. wrote:
Use alias_method ?
I like the lack of the comma (and the need for :). Makes it clear
that it’s syntax.alias this that
That’s fine. I don’t care if also works without the comma. But it’s
pointless that it can’t handle both. Then there’s no need for what’s
“clear” or not, it just works.
T.
Trans wrote:
/ …
I like the lack of the comma (and the need for :). Makes it clear
that it’s syntax.alias this that
That’s fine. I don’t care if also works without the comma. But it’s
pointless that it can’t handle both. Then there’s no need for what’s
“clear” or not, it just works.
If a comma were to be accepted in this case, someone would expect a list
of
indeterminate length to be syntactically correct (because that is how
commas tend to be used). Then we would hear from those bitten by that
“bug”.
Paul L. wrote:
pointless that it can’t handle both. Then there’s no need for what’s
“clear” or not, it just works.If a comma were to be accepted in this case, someone would expect a list of
indeterminate length to be syntactically correct (because that is how
commas tend to be used). Then we would hear from those bitten by that
“bug”.
Why would anyone expect that? It requires two arguments. I also point
out that it takes symbols just as well as literal names. Is anyone
becoming confused b/c it doesn’t take a variable?
T.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs