Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

From where do you get that strings are mutable?


> * Mutable and immutable strings (buffer/string)

https://janet-lang.org/


In context of the other bullet points, buffer is the mutable variation. I can't say that I find that to be too disconcerting


It 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.


I love how the site has an embedded repl.

Anyone know if there’s a preferred way to implement this?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: