Post A0ffwmsn9aLKFASYCm by nothien@mstdn.io
(DIR) More posts by nothien@mstdn.io
(DIR) Post #A0ffwmHDPIHkMcsXdQ by nothien@mstdn.io
2020-10-29T17:20:33Z
0 likes, 0 repeats
@sir How do you implement printf() without generics or C's horrible variadic argument system?
(DIR) Post #A0ffwmbmAqjROOUxgO by sir@cmpwn.com
2020-10-29T17:20:56Z
0 likes, 0 repeats
@nothien I like tagged unions for this
(DIR) Post #A0ffwmsn9aLKFASYCm by nothien@mstdn.io
2020-10-29T17:22:46Z
0 likes, 0 repeats
@sir That's not a bad idea, actually. As a side note, tagged unions should definitely be a first-class feature (something like a more flexible version of Rust's enums).
(DIR) Post #A0ffwn96AxO33k5Zce by hyphen@anime.website
2020-10-30T00:55:53.736723Z
0 likes, 0 repeats
@nothien like, say, possibly, algebraic sum-types? :cirnoHeh: