2 ms·
Can you give an example of how this could be used?
by kiwijamo 4y ago
Can you give an example of how this could be used?
- xmcqdpt2 4y agoThe 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.