On Sun, Jan 20, 2019 at 7:14 AM <roychowdhuryrohit....@gmail.com> wrote:
>
> It can be verified by use of tuples
> x, (y, z) := A[id1], B[id2]
>
> But the above doesn't work. Why ?

Well, because that's not how the language works.  The language doesn't
support tuples.  It supports some specific cases of assignment to
multiple values.

I'm not sure what kind of question you are asking.  Are you asking why
that doesn't work today, or are you asking why the language was
designed the way that it is?

Ian

> On Monday, June 6, 2011 at 11:13:04 PM UTC+5:30, soapboxcicero wrote:
>>
>> var A, B map[something]bool
>> ...
>> x, y, z := A[id1], B[id2]
>>
>> is y the value of B[id2] and z whether it's in B or is y whether id1
>> is in A and z the value of B[id2]?
>>
>> On Mon, Jun 6, 2011 at 10:39 AM, ceving <cev...@gmail.com> wrote:
>> > On Jun 6, 7:30 pm, chris dollin <ehog.he...@googlemail.com> wrote:
>> >>
>> >> Programming languages are designed for the convenience of
>> >> people; mere logical consistency is neither necessary nor
>> >> sufficient.
>> >
>> > Sorry but when you think convenience is the most important thing for a
>> > programmer you should stop programming at all and start sitting in the
>> > sun. ;-)
>> >
>> > Correctness is the most important aim of programming! And I don't
>> > think that there is much controversy about this on this planet. And
>> > correctness is only achieved by a simple and logical language design.
>
> --
> 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.

Reply via email to