Post #1758318
2026-04-20 14:57 UTC
@teilweise @Sarnau @mayo @dasdom
So let is not really const? More like a readonly property? Either that or Apple couldn't afford to hire someone who can write an optimizing compiler.
Replies (1)
-
@teilweise@layer8.space 2026-04-20 15:25
@leeloo @Sarnau @mayo @dasdom Do you know the difference between 'const char *` and `char * const` in C++? I think `let` is a more like `char * const` than like `const char *`. The `"\("string literal")"` case probably gets special treatment when optimizing. I vaguely remember it from when I implemented https://github.com/dhoepfl/DHLocalizedString/ because it was concatenated even when I wanted to get *every* interpolation but could not. Not to forget: Interpolation is used for more than just plain old strings.