There's also a lot of good background about the language design choices in 
the FAQ:
https://go.dev/doc/faq

Go derives much of its syntax from C, and the FAQ describes some of the 
differences from C.  But note that even C allows you to do the same:

int a, b, c;
char *x, *y, *z;

On Thursday, 18 August 2022 at 17:35:21 UTC+1 Brian Candler wrote:

> What exactly is it about that expression that you don't think seems right?
>
> It's a shortcut for:
>
> var x string
> var y string
> var z string
>
> I think that saving typing is a good feature.
>
> Or do you object to the feature of being able to declare variables at all?
>
> On Thursday, 18 August 2022 at 13:52:56 UTC+1 ysi...@gmail.com wrote:
>
>> Hi,
>>
>> I'm just wondering why this feature is in Golang: such as 
>>
>> var x, y, z string
>>
>> Thanks,
>> Yasser
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/53628aff-c2c6-4e0d-80e1-0ca1068f7c14n%40googlegroups.com.

Reply via email to