Fix Phobos dependencies on autodecoding

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Aug 16 20:35:18 UTC 2019


On Fri, Aug 16, 2019 at 01:18:54PM -0700, Walter Bright via Digitalmars-d wrote:
> On 8/16/2019 10:52 AM, H. S. Teoh wrote:
> > So in other words, we should encode 1, I, |, and l with exactly the
> > same value, because in print, they aII look about the same anyway,
> > and the user is well able to figure out from context which one is
> > meant. After a11, once you print the string the semantic distinction
> > is gone anyway, and human beings are very good at te||ing what was
> > actually intended in spite of the ambiguity.
> > 
> > Bye-bye unambiguous D lexer, we hardly knew you; now we need to
> > rewrite you with a context-sensitive algorithm that figures out
> > whether we meant 11, ||, II, or ll in our source code encoded in
> > Walter Encoding.
> 
> Fonts people use for programming take pains to distinguish them.

So you're saying that what constitutes a "character" should be
determined by fonts??


T

-- 
Programming is not just an act of telling a computer what to do: it is also an act of telling other programmers what you wished the computer to do. Both are important, and the latter deserves care. -- Andrew Morton


More information about the Digitalmars-d mailing list