Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move private fields into constructor | Martin Odersky | 2014-10-11 | 1 | -0/+53 |
Private fields that are accessed only from the constructor, and are accessed only after they are properly initialized are now moved into the constructor. This avoids creating a redundant objetc field. Good example: gcd in Rationals (see constrs.scala). |