How about replacing <| with ->

Andreas Rossberg rossberg at google.com
Mon Mar 5 03:41:49 PST 2012


On 3 March 2012 23:20, David Herman <dherman at mozilla.com> wrote:
> On Mar 2, 2012, at 4:31 PM, Luke Hoban wrote:
>
>>>> What do you think? Do you like -> better than <| ?  Is it ok to not have it available for some possible future function shorthand?
>>
>> Both => and -> have strong associations with function shorthands from C#, Scala, C++,  Java 8, Perl, CoffeeScript, ML, Haskell and more.
>
> This argument seems to over-reach. C and C++ use -> for pointer indirection. Perl uses -> for method calls.

C++11 uses it for function types:

http://en.wikipedia.org/wiki/C%2B%2B11#Alternative_function_syntax

/Andreas


More information about the es-discuss mailing list