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/9dbc376c-3727-4e96-a25d-07249a6da923n%40googlegroups.com.

Reply via email to