Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
codefromscala [2007/08/16 12:12] philippe.suter |
codefromscala [2007/08/16 12:13] philippe.suter |
||
---|---|---|---|
Line 5: | Line 5: | ||
* match on Some(n) / None. Option is sealed, and the completeness is already checked by the compiler.. Disjointness/irredundancy is obvious | * match on Some(n) / None. Option is sealed, and the completeness is already checked by the compiler.. Disjointness/irredundancy is obvious | ||
* match on something-really-precise (eg. Seq('X','M','L')..) and then a wildcard. Used to throw exceptions occasionnally. Not that interesting. | * match on something-really-precise (eg. Seq('X','M','L')..) and then a wildcard. Used to throw exceptions occasionnally. Not that interesting. | ||
+ | * use of match to define equals. | ||
==== From the libaries ==== | ==== From the libaries ==== |