News for hackers. Stuff that matters.
Re:The surprisingly subtle ways Microsoft Word has changed h... by esafak on Sunday November 05, 2023 @12:11PM (#38153098)
> Names are not strings.

So what are they?

Re:The surprisingly subtle ways Microsoft Word has changed h... by cratermoon on Sunday November 05, 2023 @12:15PM (#38153154)
Strings are a primitive type. Names are not strings in the same way Dates are not strings. They can be implemented, represented, and printed as strings, but they have behaviors and meaning that the primitive string type does not.

To use another example, a binary tree is not an array, although it can be implemented using an array.

Money is not a floating point value, and woe to the programmer that tries to use float for money.

Re:The surprisingly subtle ways Microsoft Word has changed h... by mcpackieh on Sunday November 05, 2023 @01:50PM (#38154271)
There are international standards for representing dates, but none exist for names. Names do not abide by any scheme or set of rules, therefore the only appropriate data structure for storing names is a unicode string. Anything else will exclude people.
Re:The surprisingly subtle ways Microsoft Word has changed h... by cratermoon on Sunday November 05, 2023 @04:37PM (#38155905)
Point me to the international standards for representing money.
Re:The surprisingly subtle ways Microsoft Word has changed h... by Shadowmist on Monday November 06, 2023 @01:14AM (#38159442)
ISO 4217
Re:The surprisingly subtle ways Microsoft Word has changed h... by cratermoon on Monday November 06, 2023 @01:06PM (#38166212)
TIL
Re:The surprisingly subtle ways Microsoft Word has changed h... by esafak on Sunday November 05, 2023 @07:31PM (#38157335)
Without making assumptions about the origin of the name, you can't impute any structure onto that string, can you? In that case, it is still simply a string.
Re:The surprisingly subtle ways Microsoft Word has changed h... by cratermoon on Thursday November 09, 2023 @05:08PM (#38212064)
> making assumptions

We have i18n to give context, no assumptions needed.