[fpc-devel] case is

Hairy Pixels genericptr at gmail.com
Thu Mar 24 02:30:43 CET 2022

> On Mar 23, 2022, at 10:09 PM, Stefan Glienke via fpc-devel <fpc-devel at 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.

	Ryan Joseph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20220324/87785442/attachment.htm>

More information about the fpc-devel mailing list