4 ms·
In which language a string would be a pointer to a pointer to a character? Even in C, string literals are simply a sequence of null-terminated char, no pointer
by xeyownt 17d ago
In which language a string would be a pointer to a pointer to a character?
Even in C, string literals are simply a sequence of null-terminated char, no pointer involved.
- Razengan 17d agofuck idk man what I was thinking lol but this shit is on the same level as the "a monad is just a monoid in the category of endofunctors" meme by now See I'm a full-time coder (since before AI) and even I'm not sure about this shit! I didn't need to be! Is every professional programmer who doesn't know assembly language and machine code today "dumb"? Just accept that as technology moves on, some basic essentials become "baked" into the tools we use, and at the end of the day all that matters is what you make with it. It's OK to use a fork without learning how to mine and smelt ore first.
- BlueGreenMagick 17d agoI'm being pedantic, but JavaScript string is often internally implemented using Ropes, which is arguably a pointer to a pointer to a character.