News for hackers. Stuff that matters.
Re:Criticizing Hare language approach for generic data struc... by zozbot234 on Wednesday May 04, 2022 @01:57PM (#31263732)
> It doesn't have in-built immutable data structures

Immutable data structures by default would involve avoidable overhead, so that's why they aren't a built in. There are well-known crates that do provide persistent data structures in Rust.

> Struct fields being private by default is a dead giveaway (unnecessary in an FP language).

Data hiding is just as useful in functional programming; in particular, it enables you to expose an interface to data that stays valid under any isomorphism, while preserving desired invariants. Structs with generally accessible and updatable fields are a special case.

There are no comments on this comment yet.