On 31-12-2020, Alex Besogonov wrote:

> I had a couple of reflective helpers that did this work through reflection, 
> but it was not clean and had broken more than once during refactorings. I 
> actually gave up on Go for this project and rewrote it in Python, resulting 
> in 10x (ten times) less lines of code.

The question is not how many lines of code to start but how to maintain
this code.
I found myself playing a lot with the magical possibilities of Python to
have very concise code but after years they become completely impossible
Maintain!

That said, i don't say that for your example, i can see where generics
will help to have maintainable code... Two sides...

I believe we have to choose where to put the cursor between the minimum
of generics possibilities for the maximum maintainability...

-- 
wilk

-- 
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/rsmsr2%24hk6%241%40ciao.gmane.io.

Reply via email to