Thoughts on function names containing arbitrary symbols

Marco Leise Marco.Leise at gmx.de
Tue Oct 4 21:25:17 PDT 2011


Am 05.10.2011, 04:40 Uhr, schrieb Andrew Wiley <wiley.andrew.j at gmail.com>:

> On Tue, Oct 4, 2011 at 9:08 AM, Jacob Carlborg <doob at me.com> wrote:
>> On 2011-10-04 12:37, Kagamin wrote:
>>>
>>> Jacob Carlborg Wrote:
>>>
>>>> What are the thoughts around here on function names containing  
>>>> arbitrary
>>>> symbols, like in Scala. Example:
>>>>
>>>> void ::: (int a) {}
>>>
>>> If D wants to be FP-style, it definitely must adopt cryptic FP naming
>>> conventions or it would be not true FP.
>>
>> Hehe. I think it looks quite nice how it works in Scala, at least in  
>> theory.
>> But on the other hand Scala makes this really usable by having infix
>> operators and that all operators are just methods. That's how operator
>> overloading works in Scala.
>
> And as a direct result, it's parsing is so slow that last time I tried
> to use the Scala IDE for Eclipse, it would lock on save as it tried to
> parse the source.

Wait... they had to defer parsing to the file save action, because it was  
to slow to do on the fly? (lol)


More information about the Digitalmars-d mailing list