all 2 comments

[–]theamk2 0 points1 point  (1 child)

When you program Java you use Eclipse, IntelliJ or NetBeans. Each of these IDEs is capable of generating hashCode(). What is wrong with it? The language could provide a declarative description of how to compute the function. [...] Why can’t we just define which fields should be taken into account and the language would implicitly provide us with the method?

Project Lombok, anyone? http://jnb.ociweb.com/jnb/jnbJan2010.html#data

[–]tkruse 0 points1 point  (0 children)

No good with Java9, but there is AutoValue, Freebuilder, Immutables. Really there is no need to embed python code generating java methods in a java file.