3 ms·
Then you write 2 functions, what you're talking about is a different question.
by Thaxll 6y ago
Then you write 2 functions, what you're talking about is a different question.
- adkadskhj 6y agoMaybe. If you have to remember two functions to _understand_ the code, is reading really easier? I imagine reading implies understanding, and while i definitely think Go is easier to read without understanding, i don't think that's the real implication.
- egeozcan 6y agoif having to write a separate function for each type of container is easy for you, then I can only respectfully disagree :) I'm saying this as someone who is learning go for fun.