2 ms·
Thanks for the explanation. I think higher-kinded types is one of those things that make me not like Scala. I cannot think about an use case, but there should
by jorgemf 10y ago
Thanks for the explanation.
I think higher-kinded types is one of those things that make me not like Scala. I cannot think about an use case, but there should be few.
> Only if you control the classes involved
You see it like a problem, I see it like a good practice. You should do whatever you want with code that wasn't meant for something else. There were a long discussion in the kotlin forums about this.
> real-world Java codebases end up full of proxying/bytecode-manipulation/reflection controlled by annotations and/or (in older codebases) XML
I see this in Python, Ruby and other languages. Real-world codebases are similar.
It is clear we think different and we are not going to agree, but I liked the conversation and I learnt new things on the way. Thanks
- lmm 10y ago> I cannot think about an use case, but there should be few. Once you're used to having them in the toolbox you use them all the time. > You see it like a problem, I see it like a good practice. You should do whatever you want with code that wasn't meant for something else. Would you say your classes shouldn't have fields that are third-party library types? Having variants that are third-party library types is just the converse. > I see this in Python, Ruby and other languages. I can't speak to Ruby but I have Python experience. springpython is seen as a joke. Python decorators are actual Python functions written in normal Python, not hints to some magic framework that does the actual implementation. Metaclasses are problematic but they don't break the rules of the language to anything like the same extent as happens in the Java world.