"Daniel Keep" <daniel.keep.li...@gmail.com> wrote in message news:h70aup$cj...@digitalmars.com... > >One thing I think the typesystem should be used more for is attaching > more semantic information to data. So maybe the solution is to > introduce something like a Text type that also stores the language of > the text. Then the library methods WILL have the right context to know > how to act. > > Just a thought.
If I'm understanding you correctly, then the hash function would treat Turkish i's the same as any other letter i, because the focus is on internal processing, but writef and friends would make the distinction because the text is meant to be read. Am I right? Ameer