Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
justinpombrio
on Feb 18, 2023
|
parent
|
context
|
favorite
| on:
John Carmack on Functional Programming in C++ (201...
To clarify: Swift enums
are
ADTs, because they can hold data for each case. Same as Rust enums. This contrasts to C enums which are not ADTs because they cannot store additional data.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: