Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
anon-3988
on May 9, 2024
|
parent
|
context
|
favorite
| on:
Algebraic Data Types for C99
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!
grumpyprole
on May 9, 2024
|
next
[–]
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!
mgaunard
on May 10, 2024
|
prev
[–]
That doesn't work since you cannot pass that as a single argument to a function.
anon-3988
on May 10, 2024
|
parent
[–]
So? make the function accept multiple arguments?
mgaunard
on May 11, 2024
|
root
|
parent
[–]
There are restrictions on calling conventions; it's not equivalent.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: