.... edit: seems NOT worth it. -rob
On Sun, Jan 6, 2019 at 4:16 PM Rob Pike <r...@golang.org> wrote: > That link doesn't work - it's into your mailbox. > > However, I do remember talking about this option some time ago, including > when the language was first being designed. It didn't seem common enough to > warrant adding, and C got along fine without it. Your regularity argument > carries some weight but it still seems worth it. > > If you disagree, file a proposal explaining the argument. > > -rob > > > On Sun, Jan 6, 2019 at 3:28 PM Michael Jones <michael.jo...@gmail.com> > wrote: > >> not Rob but rather Ian... >> (6/22/2012) >> >> >> https://mail.google.com/mail/u/0/#label/go%2Fgolang-nuts/FMfcgxwBTsjnkHgqhvQfLqrXsJdHZRxC >> >> On Sat, Jan 5, 2019 at 7:52 PM Michael Jones <michael.jo...@gmail.com> >> wrote: >> >>> I brought it up early on, wanting AND (&) and OR (|) as well as >>> AND-ASSIGN (&=) and OR-ASSIGN (|=). >>> >>> Not enthusiastic about shortcut operators on assignment form. >>> >>> Rob posted here that he was ok/open to the idea. >>> >>> On Sat, Jan 5, 2019 at 5:55 PM Caleb Spare <cesp...@gmail.com> wrote: >>> >>>> Sometimes when working with bools I wish I could write >>>> >>>> myBool &&= x >>>> >>>> rather than >>>> >>>> myBool = myBool && x >>>> >>>> I believe that && and || are the only binary operators in the language >>>> for which the assignment form makes sense but doesn't exist (i.e., we >>>> have +=, &^=, >>=, and so on). So in some sense adding these last two >>>> operators would be symmetric and would make working with bools just as >>>> convenient as working with integers, floats, bit fields, etc. >>>> >>>> Has this been discussed before? It's hard to search for this. >>>> >>>> Caleb >>>> >>>> -- >>>> 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. >>>> >>> >>> >>> -- >>> >>> *Michael T. jonesmichael.jo...@gmail.com <michael.jo...@gmail.com>* >>> >> >> >> -- >> >> *Michael T. jonesmichael.jo...@gmail.com <michael.jo...@gmail.com>* >> >> -- >> 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.