On Sat, Aug 19, 2017 at 5:05 PM Tong Sun <suntong...@gmail.com> wrote:

> Suggesting C# type syntax like "int?" so as to take nil as valid value.

- As int is not a pointer type, what would nil int mean?

- Are you willing to sacrifice extra storage for the additional isNil
information or do you prefer that int cannot represent 2^(sizeof(int)*8)
different values?

- (xyproblem?) If you need the information like 'isValid', why a separate
bool [field] is not enough?

-- 

-j

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to