Thread replies: 8
Thread images: 1
Anonymous
2016-06-18 05:50:16 Post No. 55135344
[Report]
Image search:
[Google]
Anonymous
2016-06-18 05:50:16
Post No. 55135344
[Report]
Why doesn't C have lambda expressions or even anonymous functions?
You have anonymous structs, unions, enums, why not functions?
Why do enumerated types have to pollute the global namespace, even if they're declared inside of a struct or function?
Oh wait, let me just make it a static type, OOPS now you can't use it anywhere!
And why wasn't array size built into the language?
The standard says nothing about how an implementation was supposed to keep track of it's heap usage, yet it expects it to know the size of a heap pointer to free or resize it.
Why couldn't this have been standardized so you could use it as a foolproof way to determine array length without resorting to stupid shit like null terminators?