▲ | MrLeap 7 months ago | ||||||||||||||||
C++ was the first programming language I ever learned, but I've only written a few hundred lines of it over the last 2 decades. Never professionally. Can you elaborate on the dangers of doing this incorrectly? What kinds of dangers are there in making a string literal available to a header file. | |||||||||||||||||
▲ | ranger_danger 7 months ago | parent [-] | ||||||||||||||||
Not OP but I think it depends on your definition of 'string'. For example there are some very grumpy devs who believe that C has no strings, and that "const char*" cannot ever be considered a string, and that anyone else who claims so is wrong. | |||||||||||||||||
|