Hacker News new | past | comments | ask | show | jobs | submit login

> C doesn't have generics, so it has no choice but to make `sizeof` somehow special

It could have used a different syntax though. Ada has a special syntax for compile-time inquiries like this, so there's no way to confuse them with function calls. Ada calls these attributes.

https://en.wikibooks.org/wiki/Ada_Programming/Attributes#Lan...




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: