Skip to main content
Toggle navigation
Friendica
Search
2022-12-08 14:46:39
2022-12-08 14:46:38
2022-12-08 14:44:03
1653142
Khalid ⚡️
1 year ago
•
•
Khalid ⚡️
1 year ago
•
•
The new "required" keyword in #
csharp
11 and #
dotnet
7 are pretty cool.
Force consumers of your object to define values for properties. This helps reduce the need for constructor overloads.
#
dotnet
#
csharp
Languages
Share via ...
in reply to Khalid ⚡️
Arkadiusz Świętnicki 🇨🇳
in reply to Khalid ⚡️
•
1 year ago
•
•
FInally! I wish we got something like convenience inits in Swift, where we can make an optional constructor without much hassle.
Languages
Share via ...
⇧
Arkadiusz Świętnicki 🇨🇳
in reply to Khalid ⚡️ • • •