[squeak-dev] The Inbox: Collections-ct.851.mcz

Jakob Reschke forums.jakob at resfarm.de
Fri Aug 16 12:38:46 UTC 2019


Am Fr., 16. Aug. 2019 um 13:41 Uhr schrieb Levente Uzonyi <
leves at caesar.elte.hu>:

> On Fri, 16 Aug 2019, Jakob Reschke wrote:
> >
> > Question is: do the Smalltalk writers expect that their string, which
> incidentally contains '... {', (Mathematical sans-serif digit one), '} ...'
> (could be in part supplied by the user?), will have that sequence replaced
> by
> > the first formatting argument or do they not expect it? Also: if user
> input is sanitized to escape format sequences before applying further
> formatting on the extended text later (imaginary scenario), this
> sanitization must
> > now also support such unicode cases.
>
> I personally see little value in having 63 ways to write a single
> digit in my Smalltalk method.
>

Me neither. I think it would rather surprise me if these higher-unicode
digits were considered for the placeholders during the formatting. Since
this construct of {0} and so forth is one for programmers, the input should
only come from Smalltalk code. Since Smalltalk as a language does not
support other numerals than the "basic" digits, I think it is reasonable to
restrict the format method to just consider these digits.

If we decided one day that Squeak should also support Roman numerals or Han
numbers in Smalltalk code, I would reconsider. ;-)

https://en.wikipedia.org/wiki/Numerals_in_Unicode
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190816/08965e05/attachment.html>


More information about the Squeak-dev mailing list