Originally posted by ssokolow
View Post
But IMO abstractions should just be syntactic sugar. When abstractions interfere with how you want to write the feature and dictate it, it starts smelling and gimping proper devs.
Originally posted by ssokolow
View Post
For pointed-to memory, though, granted C by default does suck here because it lacks the "may_alias" attribute, so you can't do it legally by the standard (union type punning is also non-standard). However that is offered by GCC (and I think LLVM) so it's fine in the real world. Once you have that you can just have two different pointers to/from void* without any type casting.
Originally posted by ssokolow
View Post
Originally posted by ssokolow
View Post
Comment