News for hackers. Stuff that matters.
Re:Porting the Go compiler from C to Go by spc476 on Friday April 25, 2014 @09:23PM (#7650034)
It would break my current usage of unions.

    typedef union
    {
      struct sockaddr     sa;
      struct sockaddr_in  sin;
      struct sockaddr_in6 sin6;
    } addr__u;
as a way to work around the BSD socket API without horrible casting all over the place. Change the "union" to a "struct" and the code no longer works. Is it subverting the type system? Yes. Is casting subverting the type system. Yes. Pick your poison.

There are no comments on this comment yet.