Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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.

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038287]
help
Chatterbox?
[Eily]: Discipulus what's the merchandise? Other bi-people?
[1nickt]: marto would like to hear that. Of course he speaks very deliberately and dramatically, allowing pauses between words, so if anybody could pull it off it would be him, or someone impersonating him ...
[Eily]: Discipulus that's a chess joke BTW right? Because bishops don't walk straight :D
[choroba]: stop making chessy jokes about bishops!
[choroba]: I mean cheesy
[LanX]: lol
[ambrus]: no, the chess bishop itself is a joke on real bi-shops
[ambrus]: or at least on the stereotype of bi-shops
[choroba]: we call chess bishops "archers"
[Eily]: choroba sorry, I had to get that off my chess

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (14)
As of 2017-09-26 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (294 votes). Check out past polls.

    Notices?