Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Thoughts on replacing -> with .

by mrallen1 (Initiate)
on Jun 11, 2013 at 16:54 UTC ( #1038287=note: print w/ replies, xml ) Need Help??

in reply to Thoughts on replacing -> with .

You will be delighted to learn that Erlang uses : for method dispatch.

Comment on Re: Thoughts on replacing -> with .
Download Code
Replies are listed 'Best First'.
Re^2: Thoughts on replacing -> with .
by Aaronrp (Beadle) on Jun 11, 2013 at 23:55 UTC

    Well, I guess that's an argument for the colon over the dot, although I'm not sure it's really a good idea to change this at all.

    One change that might, maybe, make sense would be to allow Unicode operators:

    use utf8;
    use Something;
    my $obj = Something→new(ARG⇒'value');
    I'm not sure, but it might be reasonable, and people could have their editors rewrite things or bind a key, and it would take less space in listings. But not if it means that -> and => would then not work.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038287]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2015-11-29 21:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (753 votes), past polls