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

See also this blog post about using using single-member structs in C to achieve similar goals: http://spin.atomicobject.com/2014/03/25/c-single-member-stru...



I came across this a few weeks ago, I think the first example is to do with arrays being second class.

On the other hand, if you give data to a C-programmer, they can locate its position in RAM. Give an assembly-programmer a simple data-type, they can point to a specific register(s) in the processor.




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

Search: