Khalid ⚡ on Nostr: Crazy idea for #csharp syntax. Support the use of `return` and `continue` logical ...
Crazy idea for #csharp syntax. Support the use of `return` and `continue` logical operation statements to short circuit in a method body.
"continue if sender is Button button” or “return if sender is not Button button”.
This would reduce nesting in if blocks when using pattern matching. #dotnet
Published at
2024-07-16 13:52:59Event JSON
{
"id": "baed3b2d4d4de9bacd9b075497ffdbeecfef3016db6763b94753fb051cfeb634",
"pubkey": "8473d11f1a7de76a81e7ef02e19a62a1b44382d1cece56a737e5e073b504fc85",
"created_at": 1721137979,
"kind": 1,
"tags": [
[
"t",
"csharp"
],
[
"t",
"dotnet"
],
[
"proxy",
"https://mastodon.social/users/khalidabuhakmeh/statuses/112796498635199184",
"activitypub"
]
],
"content": "Crazy idea for #csharp syntax. Support the use of `return` and `continue` logical operation statements to short circuit in a method body.\n\n\"continue if sender is Button button” or “return if sender is not Button button”.\n\nThis would reduce nesting in if blocks when using pattern matching. #dotnet\n\nhttps://files.mastodon.social/media_attachments/files/112/796/498/607/159/415/original/27d50f850e7cf07e.png",
"sig": "26fd49b610b22cb71481f129be3c05e0cbbb8544fbfcf1dd4875f141acc15e8e38481936c9d62273f58984c63d0d34d7d61fcd16e8d1f5c5c01d7b52c2b3a3f9"
}