You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've occasionally wanted this, and "Sophie" recently asked on scala-user list if it was possible:
{code}
case class Rectangle(height: Int, width: Int)
{code}
Instead of pattern matching by position:
{code}
case Rectangle(_, w) => use(w)
{code}
Can I use the field label, something like:
{code}
case Rectangle(width = w) => use(w)
{code}
FWIW if I had the ability to set the priority to Minor, I would! :)
The text was updated successfully, but these errors were encountered:
I've occasionally wanted this, and "Sophie" recently asked on scala-user list if it was possible:
FWIW if I had the ability to set the priority to Minor, I would! :)
The text was updated successfully, but these errors were encountered: