News for hackers. Stuff that matters.
Re:Making a Go program 70% faster with a one character change by spockz on Monday November 14, 2022 @04:04PM (#33601031)
Scala has had this for ages. You can have it today. Even in Java either through the Google collection library or through a library that mimics fp style programming. The name eludes me for the moment.
Re:Making a Go program 70% faster with a one character change by gowld on Monday November 14, 2022 @04:42PM (#33601592)
Guava, but it's not fully typesafe.

Mutable is not part of the Java meta-language used for typing.

ImmutableMap implements Map

https://guava.dev/releases/23.0/api/docs/com/google/common/c...

and throws exceptions on mutation.

https://guava.dev/releases/23.0/api/docs/src-html/com/google...