April 14, 2006
Kyle Furlong wrote:
> Walter Bright wrote:
> 
>> pragma wrote:
>>
>>> In article <e1jeql$2vcl$1@digitaldaemon.com>, Walter Bright says...
>>>
>>>> Had to do an update since --gc-sections broke exception handling.
>>>>
>>>> Also, 'I' and 'l' integer suffixes are deprecated, because in many fonts they are indistinguishable from each other and from '1'.
>>>>
>>>> http://www.digitalmars.com/d/changelog.html
>>>
>>> You're not kidding.  I found it somewhat humorous that the linked page exhibits
>>> the very problem you're citing:
>>>
>>> * Numeric suffix '|' now deprecated, use 'L' instead.
>>> * Floating point suffix '|' now deprecated, use 'i' instead.
>>
>> Yup. I got this idea from the JSF document on C++ coding standards. I've also wondered about disallowing single letter declarations when those letters are lower case l, upper case I, or upper case O, or if that is going too far.
> 
> That seems to me to be going too far. Let a style guide do that work, that is 

Let's put it this way: if a programmer insists on using a font where l, I, 1, O, 0, etc. have the slightest chance of looking like each other, then that programmer is not one we'd want in the D community.

I promised Derek to not put down a certain programming language, but let's just say, that anyone with a history of C (or C++), can't in their worst nightmares, imagine using a font that doesn't make a difference between 0, O, 1, l, I,,, etc.

Having said that, I don't have a specific opinion about what Walter was thinking of.
April 14, 2006
Georg Wrede wrote:
> Let's put it this way: if a programmer insists on using a font where l, I, 1, O, 0, etc. have the slightest chance of looking like each other, then that programmer is not one we'd want in the D community.
> 
> I promised Derek to not put down a certain programming language, but let's just say, that anyone with a history of C (or C++), can't in their worst nightmares, imagine using a font that doesn't make a difference between 0, O, 1, l, I,,, etc.
> 
> Having said that, I don't have a specific opinion about what Walter was thinking of.

I certainly prefer a font that distinguishes them. But arial and helvetica don't, are very common, and tend to creep in by default.
April 14, 2006
Georg Wrede wrote:
> Kyle Furlong wrote:
>> Walter Bright wrote:
>>
>>> pragma wrote:
>>>
>>>> In article <e1jeql$2vcl$1@digitaldaemon.com>, Walter Bright says...
>>>>
>>>>> Had to do an update since --gc-sections broke exception handling.
>>>>>
>>>>> Also, 'I' and 'l' integer suffixes are deprecated, because in many fonts they are indistinguishable from each other and from '1'.
>>>>>
>>>>> http://www.digitalmars.com/d/changelog.html
>>>>
>>>> You're not kidding.  I found it somewhat humorous that the linked page exhibits
>>>> the very problem you're citing:
>>>>
>>>> * Numeric suffix '|' now deprecated, use 'L' instead.
>>>> * Floating point suffix '|' now deprecated, use 'i' instead.
>>>
>>> Yup. I got this idea from the JSF document on C++ coding standards. I've also wondered about disallowing single letter declarations when those letters are lower case l, upper case I, or upper case O, or if that is going too far.
>>
>> That seems to me to be going too far. Let a style guide do that work, that is 
> 
> Let's put it this way: if a programmer insists on using a font where l, I, 1, O, 0, etc. have the slightest chance of looking like each other, then that programmer is not one we'd want in the D community.
> 

What about if they are using an IDE with support for 1 font only?
April 14, 2006
clayasaurus wrote:
> Georg Wrede wrote:
>> Kyle Furlong wrote:
>>> Walter Bright wrote:
>>>
>>>> pragma wrote:
>>>>
>>>>> In article <e1jeql$2vcl$1@digitaldaemon.com>, Walter Bright says...
>>>>>
>>>>>> Had to do an update since --gc-sections broke exception handling.
>>>>>>
>>>>>> Also, 'I' and 'l' integer suffixes are deprecated, because in many fonts they are indistinguishable from each other and from '1'.
>>>>>>
>>>>>> http://www.digitalmars.com/d/changelog.html
>>>>>
>>>>> You're not kidding.  I found it somewhat humorous that the linked page exhibits
>>>>> the very problem you're citing:
>>>>>
>>>>> * Numeric suffix '|' now deprecated, use 'L' instead.
>>>>> * Floating point suffix '|' now deprecated, use 'i' instead.
>>>>
>>>> Yup. I got this idea from the JSF document on C++ coding standards. I've also wondered about disallowing single letter declarations when those letters are lower case l, upper case I, or upper case O, or if that is going too far.
>>>
>>> That seems to me to be going too far. Let a style guide do that work, that is 
>>
>> Let's put it this way: if a programmer insists on using a font where l, I, 1, O, 0, etc. have the slightest chance of looking like each other, then that programmer is not one we'd want in the D community.
>>
> 
> What about if they are using an IDE with support for 1 font only?

I would tell them to get a new one.
April 14, 2006
On Fri, 14 Apr 2006 10:41:30 +1000, Georg Wrede <georg@nospam.org> wrote:



>
> Let's put it this way: if a programmer insists on using a font where l, I, 1, O, 0, etc. have the slightest chance of looking like each other, then that programmer is not one we'd want in the D community.
>
> I promised Derek to not put down a certain programming language, but let's just say, that anyone with a history of C (or C++), can't in their worst nightmares, imagine using a font that doesn't make a difference between 0, O, 1, l, I,,, etc.

ROTFLOL ... I went so far as to create a variety of Courier that changed the lowercase L to look like the lowercase T (t) but without the bar, and put a dot inside the Zero glyph to make it distinguishable. If anyone wants it just let me know.

-- 
Derek Parnell
Melbourne, Australia
April 14, 2006
Victor Nakoryakov <nail-mail@mail.ru> wrote in news:e1ld45$24l8$1@digitaldaemon.com:

> 
> Hm... I think bigger part of programmers use syntax highlighting in their editors, so numbers and identifiers have different colors. This is sufficient to distinguish problem characters.
> 

...or you can use one of these fonts: http://www.lowing.org/fonts/

-- 
http://wolfwoodscrowd.info
April 14, 2006
"Stjepan Zlodi" <stjepan@remove.gmail.com> wrote in message news:Xns97A55DFE399A5stjepangmail@63.105.9.61...
> ...or you can use one of these fonts: http://www.lowing.org/fonts/

Or one of these:  http://www.proggyfonts.com/

ProggyCleanSZ.  THE font.  For everything.


April 14, 2006
Derek Parnell wrote:
> On Fri, 14 Apr 2006 10:41:30 +1000, Georg Wrede <georg@nospam.org> wrote:
> 
> 
> 
>>
>> Let's put it this way: if a programmer insists on using a font where l,  I, 1, O, 0, etc. have the slightest chance of looking like each other,  then that programmer is not one we'd want in the D community.
>>
>> I promised Derek to not put down a certain programming language, but  let's just say, that anyone with a history of C (or C++), can't in their  worst nightmares, imagine using a font that doesn't make a difference  between 0, O, 1, l, I,,, etc.
> 
> 
> ROTFLOL ... I went so far as to create a variety of Courier that changed  the lowercase L to look like the lowercase T (t) but without the bar, and  put a dot inside the Zero glyph to make it distinguishable. If anyone  wants it just let me know.
> 

Consolas nicely distinguishes between the letter O and the number 0. As do DejaVu Mono and Monaco.

It's just a shame Consolas isn't widely available yet (and requires ClearType to do it justice - which is fine by me, I can't stand looking at a screen without ClearType turned on anyway).
April 14, 2006
Derek Parnell wrote:
> On Fri, 14 Apr 2006 10:41:30 +1000, Georg Wrede <georg@nospam.org> wrote:
> 
> 
> 
>>
>> Let's put it this way: if a programmer insists on using a font where l, I, 1, O, 0, etc. have the slightest chance of looking like each other, then that programmer is not one we'd want in the D community.
>>
>> I promised Derek to not put down a certain programming language, but let's just say, that anyone with a history of C (or C++), can't in their worst nightmares, imagine using a font that doesn't make a difference between 0, O, 1, l, I,,, etc.
> 
> ROTFLOL ... I went so far as to create a variety of Courier that changed the lowercase L to look like the lowercase T (t) but without the bar, and put a dot inside the Zero glyph to make it distinguishable. If anyone wants it just let me know.
> 
> --Derek Parnell
> Melbourne, Australia

Huh? Doesn't Courier New already distinguishes between the two?
ilIL0O -> all look different.


-- 
Bruno Medeiros - CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
April 14, 2006
Jarrett Billingsley wrote:
> "Stjepan Zlodi" <stjepan@remove.gmail.com> wrote in message news:Xns97A55DFE399A5stjepangmail@63.105.9.61...
>> ...or you can use one of these fonts: http://www.lowing.org/fonts/
> 
> Or one of these:  http://www.proggyfonts.com/
> 
> ProggyCleanSZ.  THE font.  For everything. 
> 
> 

Not for people who run 1600+ resolutions. (myself and others I'm sure) Bitmap fonts such as these just dont scale well.