r/ProgrammingLanguages • u/Luroqa • Jan 24 '26
Discussion Why don't any programming languages have vec3, mat4 or quaternions built in?
Shader languages always do, and they are just heaven to work with. And tasty tasty swizzles, vector.xz = color.rb it's just lovely. Not needing any libraries or operator overloading you know? Are there any big reasons?
110
Upvotes
View all comments
Show parent comment
7
u/Kaisha001 Jan 24 '26
The same could be said of any standard library... or even any language. Perhaps we should all be programming in asm?
At some point if something is common and stable enough (ie. there is really only one proper implementation most of the time), then there doesn't seem to be any reason not to support it.
The idea that we can't support vec3/4 because someone might want vec19 seems silly to me.