4 ms·
From where do you get that strings are mutable?
by Scarbutt 6y ago
From where do you get that strings are mutable?
- threatofrain 6y ago> * Mutable and immutable strings (buffer/string) https://janet-lang.org/ https://janet-lang.org/
- zdragnar 6y agoIn context of the other bullet points, buffer is the mutable variation. I can't say that I find that to be too disconcerting
- brabel 6y agoIt is not disconcerting. It is necessary if you want to perform string operations efficiently. Java has String and StringBuilder for the same purpose. Rust has str (always static, immutable) and String (can be mutable). This is very common in non-scripting languages.
- loosetypes 6y agoI love how the site has an embedded repl. Anyone know if there’s a preferred way to implement this?