2 ms·
> * Mutable and immutable strings (buffer/string) https://janet-lang.org/ https://janet-lang.org/
by threatofrain 7y ago
> * Mutable and immutable strings (buffer/string)
https://janet-lang.org/ https://janet-lang.org/
- zdragnar 7y 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 7y 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 7y agoI love how the site has an embedded repl. Anyone know if there’s a preferred way to implement this?