Uniform Function Call Syntax?

krzaq via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 7 02:30:39 PST 2016


On Monday, 7 March 2016 at 07:58:53 UTC, Era Scarecrow wrote:
> On Monday, 7 March 2016 at 06:57:48 UTC, Ola Fosheim Grøstad 
> wrote:
>> immutable π = 3.14;
>>
>> Oh, the horror!
>
>  With the assumption pi is declared elsewhere (say, in 
> std.math), what i wonder is the number for pi vs 2 letters. 
> Unicode 03C0h, so now i have to convert that to decimal, code 
> 960. Alt+960 = └
>
>  That's not pi... Looking up the symbol by itself in the 
> character map was annoying enough. No, this is not a good idea 
> unless it's easily accessible, preferably with 2 or fewer 
> keystrokes to symbolize pi.
>
>
>  As a reminder most of us are programmers, not scientists or 
> mathematicians. Having specialized symbols won't give us any 
> benefit. It's not like we're filling out a complex formula with 
> college level math for a thesis.

Didn't we have "pitching D to academia" thread recently?

Honestly, any tool can be abused. Javascript, Swift and even 
partially Haskell allow unicode names and I'm sure we all saw 
that toy example that was full of emojis, but can you say it has 
been a problem in practice?


More information about the Digitalmars-d mailing list