Google Groups

Re: [scala-internals] Re: scala-reflect.jar

martin Apr 28, 2012 1:43 AM
Posted in group: scala-internals

 - default arguments don't belong in API

Why? It conveys useful information. Why ban it from the API?
 - as mentioned before, boolean arguments to methods are bad; but
boolean arguments with defaults are worse

I disagree. If an argument is a boolean it is a boolean. Just remember to pass a named parameter, that's all. 

  process(x, extendedChecks = true)

I don't think there's a clearer way to express things.

 - Martin