1) Future was returned, but the toString
looks a little… shall we say… odd?
res6: scala.concurrent.Future[scala.collection.Map[(String, Short),Int]] = List()
scala> res6.toString
res11: String = List(scala.concurrent.impl.CallbackRunnable@3815c525, scala.concurrent.impl.CallbackRunnable@58a887fb)
2) REPL no longer limits the output of a println, causing massive console flooding on large collections. Perhaps this is intentional and can be disabled?
3) REPL may have been improved, but now really sucks in Cygwin. No history with up/down arrows and random cursor moves. Sorry, I hate to be the bearer of bad news, particularly when people have specifically been working to improve the REPL.
How did you create the Future?
--
Cheers,
√
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Seems caused by this commit: https://github.com/scala/scala/commit/c201eac291682a9bdb9ca2790403084b4f36da76
Fix is to override toString in AbstractPromise to provide a default which does not leak implementation details. And optionally doing a final override of toString in DefaultPromise.
can you open JIRA tickets on all three issues at https://issues.scala-lang.org …? that'd be the best place to discuss the details, separately.
1) Future was returned, but the
toString
looks a little… shall we say… odd?res6: scala.concurrent.Future[scala.collection.Map[(String, Short),Int]] = List() scala> res6.toString res11: String = List(scala.concurrent.impl.CallbackRunnable@3815c525, scala.concurrent.impl.CallbackRunnable@58a887fb)
2) REPL no longer limits the output of a println, causing massive console flooding on large collections. Perhaps this is intentional and can be disabled?
3) REPL may have been improved, but now really sucks in Cygwin. No history with up/down arrows and random cursor moves. Sorry, I hate to be the bearer of bad news, particularly when people have specifically been working to improve the REPL.
Random footnote to the issue: the checkstyle tool has a notion of listing classes known to be immutable, but I recently wondered how that applies to subclasses. That is, a subclass is mutable but immutable with respect to the superclass API. Then what is the status of toString? Is it permitted to vary over time? At stake is idempotency, as opposed to memory model concerns.
On Thursday, March 10, 2016 at 4:41:06 AM UTC-8, Jason Zaugg wrote:On Thu, Mar 10, 2016 at 7:34 PM Viktor Klang <viktor...@gmail.com> wrote:Seems caused by this commit: https://github.com/scala/scala/commit/c201eac291682a9bdb9ca2790403084b4f36da76
Fix is to override toString in AbstractPromise to provide a default which does not leak implementation details. And optionally doing a final override of toString in DefaultPromise.I think this is the same issue I raised as https://issues.scala-lang.org/browse/SI-9488. I didn't spot that it was a regression in 2.11 at the time, I thought it was only in 2.12.x-jason
--
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.