News for hackers. Stuff that matters.
Re:Using enums to represent state in Rust by tkz1312 on Friday September 22, 2023 @03:58PM (#37616969)
This kind of thing has been very standard in other ML family languages for decades now. Rust is a nice language, but it’s frustrating when its proponents act as if it’s the first language to have these kind of features. ML is 50 years old at this point…
Re:Using enums to represent state in Rust by rakenodiax on Saturday September 23, 2023 @10:04AM (#37623324)
Everything that was old is new again. I’m glad that features that were relegated to “esoteric” languages like ML's and lisps are becoming more mainstream. There are many lucky 10k’s! :)
Re:Using enums to represent state in Rust by tkz1312 on Sunday September 24, 2023 @06:29PM (#37637785)
rust mainstreaming a lot of functional concepts and patterns is awesome very much agree, just pushing back on the claim that this it’s the only language where this style is prevalent.