3 ms·
> A string is a byte array for all intents and purposes. This smacks of reductionism. String as an abstract type only needs to conform to a number of certain a
by Koshkin 6y ago
> A string is a byte array for all intents and purposes.
This smacks of reductionism. String as an abstract type only needs to conform to a number of certain axioms and support certain operations. (Thus, for example, a text editor, where a string can be mutable, could choose a representation of this type that is different from a simple byte array.)
- throwaway894345 6y agoBased on the context of the thread, the definition of "string" used in this thread must also include the properties possessed by Go strings in order for the original criticism to be coherent. It seems more likely (and charitable) that the criticism is incorrect rather than incoherent. In whatever case, Go strings have all of the relevant properties for modeling file paths.