We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In 4.6 of the Language Ref, I'd suggest to stipulate that "implicit" takes precedence over default arguments as this may not be obvious.
Example: implicit val i = 1 def f(implicit i: Int = 0) = i f // 1 as opposite to 0
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-5621?orig=1 Reporter: Sonnenschein (sonnenschein) Affected Versions: 2.9.0
Sorry, something went wrong.
@gkossakowski said: Unassigning and rescheduling to M7 as previous deadline was missed.
@som-snytt said (edited on Mar 10, 2017 5:52:10 PM UTC): 6.6.1 says any param that doesn't have a positional arg must have a default.
Clarification: every param "which is not specified by a positional, named, or implicit argument has a default argument."
Go, Oxford comma.
scala/scala#5767
edit, or something to that effect in 4.6.1.
som-snytt
No branches or pull requests
In 4.6 of the Language Ref, I'd suggest to stipulate that "implicit" takes precedence over default arguments as this may not be obvious.
Example:
implicit val i = 1
def f(implicit i: Int = 0) = i
f // 1 as opposite to 0
The text was updated successfully, but these errors were encountered: