retronym

Brisbane, Australia

twitter.com/retronym

Age: 36

Oct
17
awarded Enlightened
Oct
17
awarded Nice Answer
Oct
9
awarded Good Answer
Oct
6
answered Scala compiler plugin to rewrite method calls
Sep
30
awarded Explainer
Sep
22
awarded Guru
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.
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))
1 2 3 4 5