Functions...https://play.golang.org/p/qhswyvcqKVw


(Cherolyn Lexvold) #1

https://play.golang.org/p/qhswyvcqKVw

In this code, what is “()” and what does it do?


(Yamil Bracho) #2

Do you mean the () in q := foo () and k, m := bar () ?
If so, it means a function call…


(Lutz Horn) #3

Did you take the Go tour?


(Norbert Melzer) #4

At least he was told to do so several times throughout the last ~6 months, even linked to specific sections that would answer his questions.


(Lutz Horn) #5

That’s what I remember, too. This makes me sad.


(Cherolyn Lexvold) #6

That turns on a bright light! Thanks!


(Cherolyn Lexvold) #7

I do as time allows and my understanding develops. Because I often get lost as I do.

Thanks for https://tour.golang.org/basics/4! I’m getting it!


(Cherolyn Lexvold) #8

For instance, whenever the C language is mentioned, I get lost, knowing nothing about C. for instance, in "https://blog.golang.org/gos-declaration-syntax


(Cherolyn Lexvold) #9

By the way, I’m a female


(Cherolyn Lexvold) #10

I don’t want to make you sad. I was actually advised by my teacher not to pursue that Tour at this time, as he is more familiar with the level that I’m at, which is totally without experience in any computer language.


(Norbert Melzer) #11

Sorry for assuming otherwise. I’m used to use “he” as gender neutral, it was taught me that way 20 years ago. It’s hard to get rid of this habit.

Sorry for hurting your feelings that way.


(Cherolyn Lexvold) #12

I’m used to use “he” as gender neutral

I suppose i†'s possible that a man could be named Cheri


(system) closed #13

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.