Adding Unicode operators to D

Bill Baxter wbaxter at gmail.com
Wed Oct 22 18:12:29 PDT 2008


On Thu, Oct 23, 2008 at 9:59 AM, Benji Smith <dlanguage at benjismith.net> wrote:
> Steven Schveighoffer wrote:
>>
>> "Andrei Alexandrescu" wrote
>>>
>>> Please vote up before the haters take it down, and discuss:
>>>
>>>
>>> http://www.reddit.com/r/programming/comments/78rjk/allowing_unicode_operators_in_d_similarly_to/
>
> It'd be fun to find ways to use all those nutty symbols. Maybe the ♥
> operator could be used to indicate "friend" classes!!!
>
>   class TreeNode
>      ♥ Tree,
>      ♥ TreeVisitor,
>   {
>      ...
>   }
>
> Seriously, though... I wouldn't mind seeing some unicode operators.


One problem I just realized is that pretty much all the popular bitmap
programming fonts lack unicode chars.  Proggy is the one I use.
This is probably the biggest roadblock for me.  It means that all the
funky symbols are going to have to come from some other font and will
look horrible.  Using a substitute font often does things like forcing
the line heights to increase on those lines which have the substituted
chars, etc.  Ick.

So I guess I'd like to know that there's a good small-point-size
bitmap programming font out there that has all the needed symbols.

--bb


More information about the Digitalmars-d mailing list