Unicode function name? ∩

Tofu Ninja via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 5 10:16:10 PDT 2016


On Monday, 29 August 2016 at 12:53:26 UTC, Jesper Tholstrup wrote:
> On Sunday, 28 August 2016 at 05:21:03 UTC, Tofu Ninja wrote:
>> Are unicode function names not supported in dmd?
>> bool ∩(A, B)(A a, B b){
>> 	return intersect(a, b);
>> }
>> Error: character 0x2229 is not a valid token
>>
>
> Personally, I would prefer 'intersect' as a function name over 
> '∩' anytime.
>
> Which benifits does the symbols add?

I was just trying it to see if it works. But I think the symbol 
is nice for readability, typing it is another matter.


More information about the Digitalmars-d-learn mailing list