3 ms·
As the joke goes: Master Gorad asks his apprentice: "How many statements does it take to call a function in Go ? Apprentice replies puzzled "I can just call
by lenkite 4y ago
As the joke goes:
Master Gorad asks his apprentice:
"How many statements does it take to call a function in Go ?
Apprentice replies puzzled "I can just call foo();" and I am done ?
Master Gorad beats his student with a cane. No, you silly, it takes at-least 3 statements to make a function call in Go:
r, err := foo();
if err != nil {
return nil, err;
}