Thoughts on function names containing arbitrary symbols

Jacob Carlborg doob at me.com
Tue Oct 4 07:08:06 PDT 2011


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.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list