3 ms·
> There are three data structures unsystematically blended into one The point is that they're not three completely separate data structures, they're a single d
by masklinn 12y ago
> There are three data structures unsystematically blended into one
The point is that they're not three completely separate data structures, they're a single data structure with context-dependent field labelling.
- perdunov 12y agoI get your point, but how to tell "labelling" from typing? Typing depends on semantics. This particular example only works out because the types are all strings, which is a case of sort of loose typing often used in programming. It could've been like this: typedef struct { union { company_t * company; school_t * school; project_t * project; }; union { address_t * location; url_t * url; }; etc.