Y
Hacker News
new
|
ask
|
show
|
jobs
by
util
5550 days ago
No objects = no structs?
1 comments
cicero
5550 days ago
There are structs in C, as well as unions, but they are data only - no methods.
link
swift
5550 days ago
Well, function pointers exist in C, though they are certainly a clumsy replacement for having methods (or first-class functions / closures / currying) built into the language.
link