I’ve begun a process converting some core functionality of my scripting from gdscript to c++, and one of my first issues concerns string consts for example I have StringNames at the base of many objects that get reused often:
const SPACE:StringName = &" "
const COMMA:StringName = &","
const COLON:StringName = &":"
const THING:StringName = &"THING"
# and so on you get the picture
My question is primarily about how this is usually handled. To note, I’m not a c++ pro in anyway shape or form and am feeling and working my through as needed. I think I need some immutable property on the class, I don’t know.
edit: They aren’t all single characters, quite a few are full words