Re:Algebraic Data Types for C99
by anon-3988 on Thursday May 09, 2024 @01:32PM
(#40310623)
lol this is like saying C doesn't need structs, you can just declare the variables with a common prefix separately! See ma, product types!
[ Parent
| on HN ]
Re:Algebraic Data Types for C99
by grumpyprole on Thursday May 09, 2024 @01:40PM
(#40310712)
Yep, or C doesn't need arrays just use pointers! And C doesn't need strings, just use a pointer to the first byte and assume it's ASCII!
That doesn't work since you cannot pass that as a single argument to a function.
So? make the function accept multiple arguments?