clojure-dev

Issues: https://clojure.atlassian.net/browse/CLJ | Guide: https://insideclojure.org/2015/05/01/contributing-clojure/
2019-12-24T04:42:46.072600Z

I have been looking at OpenJDK Java source code for java.util.List and java.util.Collection interfaces, and it seems that even though the first interface extends the second one, most of the method signatures in Collection are repeated in List. Does anyone know why they might do it that way? It is redundant to do so, true?

2019-12-24T04:48:36.073900Z

Both of those interfaces contain method signatures for equals and hashCode that are required for every Java Object or sub-class (which is all Java objects), which also seems redundant.

2019-12-24T04:49:18.074500Z

Perhaps it is done to provide more specific doc strings for those methods in those interfaces?

πŸ‘ 1
jaihindhreddy 2019-12-24T07:04:56.074700Z

πŸ’―! I never quite understood the point of the standards. By publishing a standard, and by enabling people to make their own non-standard extensions, the language authors instantly forego a lot of freedom in evolving the language without trampling on these extensions. Also, LISPs already give users a lot more expressive power to mould the language to their needs making standards even less useful IMHO.

cfleming 2019-12-24T07:05:24.075200Z

Almost certainly, I suspect, I can’t think of another reason to do so.

πŸ‘ 1