retronym

Brisbane, Australia

twitter.com/retronym

Age: 36

21h
comment Implicit parameters break type inference or inference does not suffice for their resolution?
Here is a comparison of the typechecking internals for the program with and without the implicit parameter: rawgit.com/retronym/22260bca2087f21cfd41/raw/out.html Without an implicit parameter, the undetermined type variable O is inferred as Nothing in order to adapt the result type of execute to the declared typed Int. With the implicit parameter, the implicit search for Ord[O] cannot resolves a unique matching implicit, and typechecking fails before considering Int.
Dec
14
awarded Nice Answer
Nov
21
awarded Guru
Nov
19
awarded Good Question
Nov
19
comment Error in Scala Maven recompilation without code change
I've just pushed a fix which will be available in 2.12.0-M1 and in 2.11.5 -Xsource:2.12.
Nov
13
comment Why do I need jsr305 to use guava in scala?
Scala 2.11.1 and above now handle the missing annotations gracefully; you no longer need jsr305 on the classpath.
Oct
27
awarded Good Answer
Oct
17
awarded Enlightened
Oct
6
answered Scala compiler plugin to rewrite method calls
Sep
30
awarded Explainer
Sep
17
answered Pinning list elements to position in a merged list in Scala
Aug
20
awarded Yearling
Jul
21
answered presentation compiler: type completion in method call with more than one argument
Jul
21
comment presentation compiler: type completion in method call with more than one argument
If you can express the issue with a failing test case of the presentation compiler, I can take a look. Just follow the pattern from my commit above and run ant build; ./test/partest --update-check test/files/presentation/my-test-case to run the test and produce a check file with the completion list. More docs about writing presentation compiler tests: github.com/scala/scala/blob/2.11.x/src/interactive/scala/tools/…
Jul
20
comment presentation compiler: type completion in method call with more than one argument
What version of Scala are you using? I just tested this with 2.11, and both variants offer completions: github.com/retronym/scala/compare/scala:2.11.x...topic/…
Jul
2
awarded Curious
Mar
24
comment Hidden performance cost in Scala?
Great answer. Would be even greater if you added the bytecode listings of the two methods!
Mar
17
comment Scala Predef unimport
Predef unimporting has to be done in a file (not in the REPL) and in the very first import.
Feb
2
comment Hashtable(int) more specific than Hashtable(Map)
issues.scala-lang.org/browse/SI-8227
Feb
1
comment Hashtable(int) more specific than Hashtable(Map)
Looks like a bug with polymorphic Java classes, overloading, and probably more. Try minimizing an example to isolate from j.u.HashMap.
1 2 3 4 5