Operator precedence -- a thought question

H

Hal Fulton

Hypothetically, suppose one wanted to introduce a new operator into
Ruby. And suppose one wanted to decide on a precedence for it.

How would you proceed?

Sure, I'm being vague. Deal with it. :)

Hal
 
D

Dossy

Hypothetically, suppose one wanted to introduce a new operator into
Ruby. And suppose one wanted to decide on a precedence for it.

How would you proceed?
Arbitrarily.

Sure, I'm being vague. Deal with it. :)

:)

-- Dossy
 
G

gabriele renzi

il Sat, 22 Nov 2003 12:35:07 +0900, Hal Fulton
Hypothetically, suppose one wanted to introduce a new operator into
Ruby. And suppose one wanted to decide on a precedence for it.

How would you proceed?

Sure, I'm being vague. Deal with it. :)

mh.. I think you should go with the precedence it has in another
language if it is imported from there. Other way, do what you want :)

Btw, this makes me wonder what the heck you're doing..
It seem there is some room for a RubyMutations[1] page now :)


[1] with Guy's StrongRuby (I just invented the name, see ruby talk
85780), with MetaRuby , SRuby (from Robert Feldt I think) JRuby..
 

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

Similar Threads


Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top