5 ms·
This is a neat project. I have a giant codebase I'd like to try this on. Depending on the output, this might be the kick in the pants I need to get in to scala
by agibsonccc 13y ago
This is a neat project. I have a giant codebase I'd like to try this on. Depending on the output, this might be the kick in the pants I need to get in to scala full time.
- eip 13y agoYou can use Java and Scala in the same project.
- agibsonccc 13y agoI'm plenty aware. I just want to migrate my whole codebase to scala. I like the JVM itself, but would like some of the features of scala. My main point is I've been procrastinating, but this could be a great motivator. I've also worked with intermixing the different JVM languages including clojure, working with SBT, etc. Good points have been raised that it wouldn't be idiomatic scala though.
- lmm 13y agoScala that's been autoconverted from Java doesn't tend to be very idiomatic scala, and there's no way to convert back. I'd recommend writing bits of your code (particularly code that needs to convert between datastructures, or code where you need better control over effects) in scala first and see how you get on with it.
- agibsonccc 13y agoYeah I looked in to the differences after I played with it a bit..generated code is never ideal in the first place though. I wanted to see how close it was..but the mapping just isn't what I was quite looking for. There really is no silver bullet though.