3 ms·
Repetitive code is a language flaw IMO. There are certainly more concise alternatives to the common case of that loop construct in many languages.
by lmm 3y ago
Repetitive code is a language flaw IMO. There are certainly more concise alternatives to the common case of that loop construct in many languages.
- righthand 3y agoThen people should use those languages. From the beginning Go has been about simplicity and utility, not about providing multiple patterns and alternate syntax. I would also argue that repetitive code is a failure of the engineer who implemented it. If writing code is repetitive then people may want to look into generating it instead.
- aatd86 3y agoIt's an interesting opinion. I tend to believe there can be value in repetitive code patterns for recognition. It can make a language easier to read and understand although a bit more tedious to write. It's especially interesting nowadays when LLM models can write parts of it. It alleviates the writing part.