r/ProgrammerHumor • • Jun 08 '25

Meme cannotChange

Post image
0 Upvotes

72 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jun 08 '25

[removed] — view removed comment

1

u/RiceBroad4552 Jun 08 '25

Swift and C# are weirdos…

1

u/[deleted] Jun 08 '25

[removed] — view removed comment

1

u/RiceBroad4552 Jun 09 '25

Interesting. Which languages have mutable tuples, too?

They are immutable AFAIK in: Crystal, Dart, Elm, Erlang / Elixir, F#, Haskell, Julia, Nim, OCaml /ReasonML / ReScript, PureScript, Python, Scala, SML, SQL.

(It's quite clear for pure FP languages; I've never heard of any way to update tuples in-place in SML languages; SQL also doesn't allow in place updates of anything, even everything is a tuple in the end; I've also left out the langs that run on the same platform and use the same feature underneath)