News for hackers. Stuff that matters.
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!
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!
Re:Algebraic Data Types for C99 by mgaunard on Friday May 10, 2024 @05:13AM (#40316847)
That doesn't work since you cannot pass that as a single argument to a function.
Re:Algebraic Data Types for C99 by anon-3988 on Friday May 10, 2024 @05:37AM (#40316981)
So? make the function accept multiple arguments?
Re:Algebraic Data Types for C99 by mgaunard on Saturday May 11, 2024 @05:00PM (#40330607)
There are restrictions on calling conventions; it's not equivalent.