> On Mar 23, 2022, at 10:09 PM, Stefan Glienke via fpc-devel > <fpc-devel@lists.freepascal.org> wrote: > > JEP 420 is hardly a misnomer because it is so much more than just type > checking in a switch statement - hence pattern matching. > You can see in the various examples that you can combine all kinds of boolean > expressions - C# has had this for quite a while and they are constantly > improving it.
Yes, Swift has some of these patterns like “case something where something.name == “John”:” but that’s another feature altogether.I see the reason for this and it’s interesting but I don’t think there’s any chance they would allow this in FPC so I skipped over it. Regards, Ryan Joseph
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel