Thoughts on function names containing arbitrary symbols

Jacob Carlborg doob at me.com
Tue Oct 4 23:41:06 PDT 2011


On 2011-10-05 04:40, Andrew Wiley wrote:
> 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.

As I said, "at least in theory".

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list