-
Notifications
You must be signed in to change notification settings - Fork 1
Init properties
Blokyk edited this page Jul 5, 2021
·
1 revision
Even in classes (where things are usually more "traditional" in lotus), we could have properties that automatically add themselves to the constructor, and define the checking/method as an accessor (like get, set, etc). This seems perfect for the init
keyword, but I was planning on giving it the same semantics as in C# (i.e. allowing optional initialization of readonly properties).