<sigh> I did. why there are always people assuming the other party they are talking to is just silly. <sigh>
Anyway, this is what i got: var ii *int ii = 3 ii++ cannot use 3 (type int) as type *int in assignment invalid operation: ii++ (non-numeric type *int) On Sun, Aug 20, 2017 at 1:24 AM, Tyler Compton <xavi...@gmail.com> wrote: > I don't think it's immediately obvious what use cases this "int?" proposal > delivers that aren't covered by "*int". The encoding/json package uses > pointers to support null JSON values. > > As a more general point, when someone answers your question, they're > taking time out of their day to help you. I think it's reasonable for the > burden of proof to be put upon the asker, who is looking to others for help. > > On Sat, Aug 19, 2017 at 9:28 PM Tong Sun <suntong...@gmail.com> wrote: > >> Oh yeah? Are you sure what you are answering is what I'm asking? >> >> Please try to understand what people are asking before showing off >> yourself, or post concrete example to proof that you understand correctly >> what people are asking. >> >> On Sat, Aug 19, 2017 at 4:02 PM, Axel Wagner < >> axel.wagner...@googlemail.com> wrote: >> >>> Go can do what you want today, just that it's spelled "*int". >>> >>> On Sat, Aug 19, 2017 at 6:01 PM, Tong Sun <suntong...@gmail.com> wrote: >>> >>>> - "int?" will be a different type than "int". I.e., we know very well >>>> what we are sacrificing when we choose that type. >>>> - There is a demand there, json and/or sql. Denying it won't make it go >>>> away. >>>> >>>> (*Sorry to Jan, was sending to the wrong place*) >>>> >>>> On Sat, Aug 19, 2017 at 11:54 AM, Jan Mercl <0xj...@gmail.com> wrote: >>>> >>>>> 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. >>>> >>> >>> >> -- >> 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. >> > -- 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.