I’m making kinda custom simple object language (Almost like XML, but it is mainly for writing UI, so I will not need any ‘special’ character handling and stuff).
I’m starting to write the parser, and I don’t know if I should pass the input string around methods. Does passing string around methods copy it? So for example if I pass string A from method B to method C, does string A stay as it is, or does it get copied and become a new string?