The idea is to add three new pattern forms
and
patternor
patternnot
patternThe latter two would not be permitted to define pattern variables in the subpatterns (as they would never be definitely assigned).
We'd have to decide on syntax and precedence, and whether some mechanism such as parentheses could be used for grouping patterns to override precedence.
Examples:
switch (o) { case 1 or 2: case Point(0, 0) or null: case Point(var x, var y) and var p: }
jnm2, lachbaer, TheUnlocked, portal-chan, bondsbw and 113 morebbarry, worldbeater, ig-sinicyn, BladeWise, msedi and 11 morestakx, D3-LucaPiombino, spixy, DrLeh, LeaFrock and 2 moreHalidCisse, AustinBryan, Austin-bryan, TheUnlocked, Unknown6656 and 14 moreFANMixco, alugili, luo4neck and EduardoLariosFANMixco
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4