retronym

Brisbane, Australia

twitter.com/retronym

Age: 35

Aug
20
awarded Yearling
Aug
8
awarded Nice Answer
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
20
awarded Guru
Jul
2
awarded Curious
Jul
2
awarded Good Answer
Jun
10
awarded Enlightened
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.
Jan
26
awarded Announcer
Jan
20
awarded Taxonomist
Jan
15
comment Implicit value not found from companion object
My suggestion: use implicit vals, rather than implicit objects, so that you can annotated the return type.
Jan
15
comment what is the map/flatmap function used in for comprehensions?
Even easier: scala> reflect.runtime.universe.reify { for (x <- Nil) yield x } res0: reflect.runtime.universe.Expr[List[Nothing]] = Expr[List[Nothing]](Nil.map(((x) => x))(List.canBuildFrom))
Jan
15
comment Implicit value not found from companion object
Could you please provide a transcript like the following that shows how to reproduce this error? gist.github.com/retronym/8435310
Jan
15
comment Scala implicits resolution mechanism is declaration order dependent?
Implicits without explicit return types are not eligible in implicit searches higher up in the same file. Without this rule, the typechecker runs into cycles very quickly. Implicit object cannot have an explicit type ascribed; my recommendation is to avoid them in favour if implicit vals.
Jan
15
comment Scala implicit conversions with multiple arguments
Duplicate of stackoverflow.com/questions/2416733/…
1 2 3 4 5