Hacker News new | ask | show | jobs
by morelisp 2007 days ago
> 4 ints or worse, using a string

Or worse, in one case I've had to deal with both (plus another surprise twist):

    public class IP {
        byte[] value 
        // if true value is a variable-length ASCII dotted octet,
        // if false it is length 4 - with LSB in value[0].
        bool isString
    }