I have been watching OCW for the MIT course 6.0001 Introduction to computer science https://www.youtube.com/watch?v=nykOeWgQcHM&list=PLUl4u3cNGP63WbdFxL8giv4yhgdMGaZNA&index=2. In the first lecture, scalar objects are defined as objects which cannot be subdivided, however, while trying to determine if strings were considered scalar objects, I stumbled upon this other definition for what scalar objects are. https://stackoverflow.com/a/37505388/20693633
refers to values that can express scale (hence the name), such as size, volume, counts, etc. Integers, floating point numbers, and fractions are scalars. Complex numbers, Booleans, and strings are NOT scalars. Something that is atomic is not necessarily scalar and something that is scalar is not necessarily atomic. Scalars can be native or provided by libraries. <
this definition is not complimentary but contradictory to the one given by 6.0001 as it does not consider Booleans to be scalar objects something that 6.0001 says they are.
Slide containing some objects which are scalar (minutes 31:06 from video 1 what is computation?
I did not dismiss the commenter's definition because it does make sense to me linguistically. I would like to know which definition is correct and if strings are considered scalar objects.