4 ms·
The simplest example is just calculating default values that aren't trivial, class X { X(Thing y) {...} X() { var y = ... ... do some mo
by xmcqdpt2 4y ago
The simplest example is just calculating default values that aren't trivial,
class X {
X(Thing y) {...}
X() {
var y = ...
... do some more stuff ...
this(y);
}
}
This is currently possible using static functions but it can often end up a bit harder to read.