I have always considered strings scalar and the main reason for that is that in programming we treat string values a lot like primitive values. But this and this Wikipedia definitions, as far as I understand them, speak against the scalar nature of strings.
In programming scalar types are often seen as the opposite of object types and strings are usually counted as scalar, because they, as well as primitive types, have natural ordering, and thus can be compared and tested for equality by means of the language itself, as opposed to object types, which would usually require custom logic for those operations.
By scalar here I mean firstly the opposite of object types, but I want to know whether being scalar is a real property of strings or are we just calling them scalar in programming because their behavior resembles primitive types
This leaves me with the question: are strings of text scalar values from the point of view of theoretical computer science?