Re:Joy: Web framework with Clojure syntax, fast startup and ...
by Scarbutt on Friday May 01, 2020 @08:54PM
(#23048089)
From where do you get that strings are mutable?
[ Parent
| on HN ]
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by threatofrain on Friday May 01, 2020 @10:06PM
(#23048471)
> * Mutable and immutable strings (buffer/string)
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by zdragnar on Friday May 01, 2020 @10:13PM
(#23048510)
In context of the other bullet points, buffer is the mutable variation. I can't say that I find that to be too disconcerting
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by brabel on Saturday May 02, 2020 @02:48AM
(#23049880)
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.
Re:Joy: Web framework with Clojure syntax, fast startup and ...
by loosetypes on Saturday May 02, 2020 @01:23AM
(#23049484)
I love how the site has an embedded repl.
Anyone know if there’s a preferred way to implement this?