3 ms·
You have conveniently left out types from go’s list.. with those removed it is hardly longer, and as has been shown (case-sensitive identifiers), not all langua
by kaba0 3y ago
You have conveniently left out types from go’s list.. with those removed it is hardly longer, and as has been shown (case-sensitive identifiers), not all language complexity lives within keywords.
- adezxc 3y agohttps://go.dev/play/p/71I57QCycTr https://go.dev/play/p/71I57QCycTr This works, so how exactly did I leave them out?
- preseinger 3y agothe parent's point was to compare the set of reserved keywords in the two languages types do not enter the discussion
- kaba0 3y agoThey do if 1/3 of java’s keywords are there due to types.
- preseinger 3y agosome keywords are types, but not all types are keywords, right? like, it's not as if the go type `float64` is also a go keyword but i guess the java type `byte` is a java keyword? according to https://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html https://docs.oracle.com/javase/tutorial/java/nutsandbolts/_k...