Hi,
Il 10/04/2024 05:40, Juliette Reinders Folmer ha scritto:
---
TL;DR: this RFC tries to do too much in one go and introduces a huge
amount of cognitive complexity with all the exceptions and the
differences in behaviour between virtual and backed properties. This
cognitive complexity is so high that I expect that the feature will
catch most developers out a lot of the time.
---
Thanks Juliette for the excellent write-up (I quoted the TL;DR just for
brevity).
At first what the RFC promises looks incredibly shiny and got me very
excited. The work done by Larry and Ilija is certainly brilliant, but
the complexity is so big that I feel we should aim for a trimmed down
version to make it easier to grasp and to work with, e.g. less syntax
variants (no short or constructor promotion), and perhaps no virtual
properties.
Cheers
--
Matteo Beccati
Development & Consulting - http://www.beccati.com/