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

Currently:

var i int
i = nil

will give:

cannot use nil as type int in assignment

However, more and more people are using json to transport data, and there 
will be times that json may be invalid. I.e., the "int" type has 'null' as 
input. 

This is causing tremendous problems for me so far, as I have to jump over 
the hoops to deal with them. 
In C#, just by adding a "?" to the end of the type solves the problem. 

Please consider. 



-- 
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