News for hackers. Stuff that matters.
Re:VirtualBox 7.0.10 download links have disappeared by happymellon on Monday July 24, 2023 @06:22AM (#36845502)
Yeah, I didn't pick it and this is an inherited codebase that I'm trying to bring up to date while I still have overlapping Java 11 support.

I haven't picked it in the past except for a toy project, to experiment with Lombok.

It has some interesting ideas which would be nice if they folded it into Java, but while it's fringe it ends up being a liability.

Re:VirtualBox 7.0.10 download links have disappeared by winrid on Monday July 24, 2023 @01:20PM (#36851311)
Yes! Then we could call it "kotlin" :)
Re:VirtualBox 7.0.10 download links have disappeared by happymellon on Monday July 24, 2023 @01:52PM (#36851753)
Hopefully not.

> val a: Int = 1

I wouldn't want to inflict that on anyone.

Re:VirtualBox 7.0.10 download links have disappeared by winrid on Monday July 24, 2023 @04:50PM (#36854013)
You don't need to have the "int" there, though, right? You can just do "val a = 1" [0]

Don't get me wrong, I still pick Java over Kotlin, but I thought ktl had type inference. Even Java has "var a = 1" now. I just wish we had optional named parameters in Java, that's like, my biggest issue with the language.

[0] https://www.oreilly.com/library/view/kotlin-programming-the/...

Re:VirtualBox 7.0.10 download links have disappeared by happymellon on Monday July 24, 2023 @05:07PM (#36854206)
I took that example from the Kotlin homepage. I've not used Kotlin, but since Scala recommends that you include the type declaration if you know what it is, I assumed that Kotlin did as well. If their example is bad, then apologies!

Optional named parameters and also default values would be great.

The stuff that gets used by the most in this codebase is the `allParameterConstructor` for enums and the `slf4j` annotation. Without those two I could probably remove the Lombok dependency.