alias comma

T

Trans

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.
 
L

Logan Capaldo

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
 
T

Trans

Logan said:
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.
 
T

Trans

Paul said:
Trans wrote:

/ ...


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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,212
Messages
2,571,101
Members
47,695
Latest member
KayleneBee

Latest Threads

Top