--
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-language+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
so instead of doing it just for tuples and be happy with it you decided to implement it in broader scope which could not be done because it conflicts with other features?
It is if you assume that the thing to implement should not be limited to just the special case of tuples, but applies to pattern matching in general.
I don't see it this way. I don't want Scala to end like C# or C++.
If you compare this feature request with the various features we got rid of recently because they weren't worth their weight, I'd say that this thing has a benefit/cost ratio which is even worse.
--
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-languag...@googlegroups.com.
What cost?
It seems allowing it for assignment what is allowed for initialization makes the language more consistent, and it is the distinction that adds extra cost.
--
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-languag...@googlegroups.com.
Btw, extending asigment to support pattern matching by doing initialization of temporary vals and doing actual assignment from those vials will work. And statements like (x,y)=(y,x) will have natural semantics.