Timeline for Why does C# type pattern matching use a different variable scoping behavior than traditional switch blocks?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 16, 2019 at 15:55 | vote | accept | rory.ap | ||
May 15, 2019 at 15:04 | comment | added | Robert Harvey | The rationale for the pattern matching design is described in detail here. | |
May 15, 2019 at 14:54 | answer | added | David Arno | timeline score: 4 | |
May 15, 2019 at 14:52 | answer | added | Ewan | timeline score: -1 | |
May 15, 2019 at 14:48 | history | reopened | Robert Harvey | ||
May 15, 2019 at 14:46 | history | closed |
gnat Robert Harvey |
Opinion-based | |
May 15, 2019 at 14:44 | comment | added | Robert Harvey | Well, the obvious answer is "because they can." Clearly, your last example is more useful than one that doesn't allow this. | |
May 15, 2019 at 14:39 | history | asked | rory.ap | CC BY-SA 4.0 |