5 ms·
they only get promoted if you add private/public/protected before the parameter
by asddubs 4y ago
they only get promoted if you add private/public/protected before the parameter
- rob74 4y agoAh, ok, yeah, thanks, guess that makes sense :) - and may also give someone who doesn't know this feature a hint as to what's going on...
- eropple 4y agoBeyond that, this is becoming more and more common in other languages. Anyone who ever touches TypeScript will immediately recognize it, for example, or (with a bit more of a stretch) Java/C#/Kotlin/Scala data classes and records. Feature convergence is only a bad thing if you're not spending enough time in other tools to recognize them.
- thecatspaw 4y agofrom my experience from learning typescript this is really easy to pick up on your own