Re:Raw String Literals Removed From Java 12 as Feature Set F...
by vbezhenar on Saturday December 22, 2018 @04:38PM
(#18742589)
That's a real problem that I've encountered. There were three web services which I consumed. They used a lot of classes with the same name and I had to work with them from one class. I had to use fully qualified names everywhere. At one point I rewrote this code using Kotlin. Kotlin had this feature, you could write "import com.package.foo.bar" and you could use "bar.Something" in your code. My code was sane. But in some release they decided to remove that feature for some reason.
[ Parent
| on HN ]
Re:Raw String Literals Removed From Java 12 as Feature Set F...
by ptx on Saturday December 22, 2018 @05:37PM
(#18742888)
You can still write
import com.package.foo.bar.Something as barSomething
according to the documentation:
https://kotlinlang.org/docs/reference/packages.htmlAlthough you'd have to do it for each class, so importing the whole package with an alias would be nice.