Thoughts on function names containing arbitrary symbols

Andrew Wiley wiley.andrew.j at gmail.com
Tue Oct 4 19:40:22 PDT 2011


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.


More information about the Digitalmars-d mailing list