Re: Just curious: who is using Pike for what?
"Tobias S. Josefowitz" <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <CAEZM=bMO3e-TMdozdeyF8O_m2jBXVuWka3u9CyJx_3ZCME14Pg@mail.gmail.com> |
On Mon, Dec 12, 2016 at 5:10 PM, Chris Angelico <[email protected]> wrote: > Pike doesn't handle things like eszett: > >> upper_case("ß") == "ß"; > (1) Result: 1 > > Python does: > >>>> "ß".upper() > 'SS' >>> sz = "ß" >>> sz.upper() == sz True (python 2.7 apparently doesn't do this, not for me). Also while "ß" is generally mapped to "SS" when uppercasing in real life (on signage etc), I personally would truly be shocked if a programming language did that. Most of the time, in a programming language, I would suppose people process strings, not text, and "ß" -> "SS" pretty much only ever makes sense in text processing contexts. I realize this issue might extend beyond the odd little "ß" character, but as a native German speaker I can assure you I so far never had any use for a function that would uppercase "ß" to "SS", while I depended on upper_case() *not* doing that a lot. If there should be a need for such a functionality, it certainly should be provided by an extra function, not handled by upper_case().