News for hackers. Stuff that matters.
Re:Defunctionalisation: An underappreciated tool for writing... by dfgdghdf on Monday March 09, 2020 @05:44PM (#22530159)
The author said in a comment here that it was written for an FP audience.

The example you gave is similar to a discriminated union in ML but it is not as robust because the language will not check that every match expression (probably an if-instanceof-ladder in Java) handles every case.

There are no comments on this comment yet.