r/ProgrammingLanguages • u/ExplodingStrawHat • Apr 29 '26
Blessed Syntax and Ergonomics
https://www.gingerbill.org/article/2026/04/29/blessed-syntax-and-ergonomics/(not my article, but thought y'all might find it interesting)
33
Upvotes
View all comments
Show parent comment
2
u/gingerbill May 03 '26
To clarify the String Types section, I was talking about unification of string types people use. Rust does have
&'static str, but it also hasstd::String. They both have their use cases, but the latter is what I am saying is conflating the string-value (which is not necessarily a string literal), string-builder, and the backing data. This is made more apparent in languages with manual memory management. It's probably a subtle point and probably need to be demonstrated in code to understand.std::Stringshould have been called something likestd::StringBuilderinstead to make it clear what its purpose is, rather than merging the concepts.And that's fine. I am not trying to please everyone, and if you prefer Rust, that's great!