News for hackers. Stuff that matters.
Re:Frege: A Haskell-Like Language for the JVM by jbooth on Thursday August 13, 2015 @09:01PM (#10058098)
Hopefully any future languages that prioritize java interop will do things like implement java.util.List rather than insist on renaming "add" to "+=" along with ":+", "+:", "+", "++", "++:" so that I have to constantly call .asScala, .asJava on collections while passing them around.
Re:Frege: A Haskell-Like Language for the JVM by lmm on Friday August 14, 2015 @02:43AM (#10058922)
Disagree. The collections are different and behave differently (e.g. the Scala ones are immutable), they should look different. Explicit .asScala and .asJava make the intent clear. They should only be necessary at the boundary.
Re:Frege: A Haskell-Like Language for the JVM by yawaramin on Thursday August 13, 2015 @09:21PM (#10058141)
Why not just import the implicit Java-Scala list conversions?
Re:Frege: A Haskell-Like Language for the JVM by hugofirth on Friday August 14, 2015 @02:19AM (#10058884)
This obviously comes down to personal preference but I personally prefer the explicit conversions for the added clarity.