News for hackers. Stuff that matters.
Re:Real world feedback from a Java dev using Scala by geoffhill on Tuesday May 01, 2012 @02:56PM (#3915877)
Very interesting comment about the notation for package-level scoping. When I worked with Java, most of the devs I worked alongside also used package-level access for more complicated private methods in order to unit test, but I've never seen that pattern used in Scala.

How do you generally test private methods in Scala? Would an inner class work? Path-dependent types in Scala seem to make this approach more elegant than in Java.

Re:Real world feedback from a Java dev using Scala by vhseibgf on Tuesday May 01, 2012 @03:13PM (#3915942)
perhaps you could elaborate on the inner class idea...
Re:Real world feedback from a Java dev using Scala by soc88 on Tuesday May 01, 2012 @04:36PM (#3916262)
I use ScalaTest's PrivateMethodTester for testing private methods.
Re:Real world feedback from a Java dev using Scala by rabbitfang on Tuesday May 01, 2012 @04:44PM (#3916287)
Thanks. Will definitely check it out.