Java is dying and it paid off my mortgage
alyosha.net
alyosha.net
students: list[tuple[int, Student]]
Or the second half and a more idiomatic structure: students: dict[int, Student]I don't think its first class support but its something. It might even be better for teaching since its not strictly enforced depending on your runtime.
Hopefully teachers noticed...
I played a bit with Spark/Javalin and it really felt like writing a Flask app, but on a properly multi-threaded runtime.
I don’t need Go or python, i need a frameworks that feels like Django.
So people will have to take care of this legacy code for ages..
But this is the future for Java, legacy code..
I was always dumbfounded this "scripting" language, from Sun, didn't let you write code like:
#!/usr/bin/java
...
I suspect lots of unix (linux) would be different if this had happened."Launch Single-File Source-Code Programs" https://openjdk.org/jeps/330