On Tuesday, July 7, 2015 at 10:11:46 AM UTC-4, Tobias Knopp wrote:
>
> Ok I have to say that I am not that sure about the immutable thingy as for 
> the regular type. For me an immutable is just like say an Int32 that also 
> does not try to hide that it has 32 bits. Thus I do not see why an ARGB 
> immutable that is bitwise represented by 4 packed bytes should hide its 
> structure. But again, I am not 100% certain about this.
>

So, in your case, it is fine to make everything public.
However, what happens when you realize that a byte isn't enough, and you 
want a 64-bit quantity packed a different way?
If you'd had accessor methods, getRed, getBlue, getGreen, etc. then you 
could merrily update your type, and everything would still work without 
breakage. 

Reply via email to