Re:Is your programming language unreasonable? (2015)
by scns on Saturday October 10, 2020 @10:26AM
(#24739195)
In descendants of ML (Haskell, OCaml, Rust etc) you can use Algebraic Data Types to condense your wall of methods to one function
[ Parent
| on HN ]
Re:Is your programming language unreasonable? (2015)
by nyanpasu64 on Saturday October 10, 2020 @07:09PM
(#24742575)
Algebraic data types have runtime case information, and won't let you reinterpret the underlying bits of a binary buffer between types. I think grandparent meant they wanted pointer casts, unions, reinterpret_cast, or transmute.