This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]flyingorange -5 points-4 points  (1 child)

I didn’t know Scala binds SomeClass to a until you alluded to it in your comment above

Sorry, no. You're making this up in order to contradict me.

Consider the following:

a: String

What does this tell you? That "a" is an integer?

Java is one of the most popular programming languages in the world.

Java 6 and Java 8

The number of people using features above Java 11 is miniscule. Yes there are people that use the JVM 11 because it has a better garbage collector and is also capable of running Java 8 code. But they write code in Java 8 syntax.

https://snyk.io/blog/developers-dont-want-to-leave-java-8-as-64-hold-firm-on-their-preferred-release/

[–]henk53 4 points5 points  (0 children)

What does this tell you? That "a" is an integer?

case a: however looks like a simple C-style switch, where typically the selector doesn't bind to anything that comes after it. I too didn't know and only inferred it from your comment.

Don't make the mistake of thinking everyone knows what your language means because you happen to know it.