The text of this article is not in this database — only its details are. Read it on the old site: Pattern Matching in F#
4 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Pattern Matching in F#
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Sam HobbsPosted Jul 18, 2011, 9:51 PM
I had difficulty understanding your first paragraph. I tried to fix the punctuation. So I searched the inernet and found http://books.google.com/books?id=y3kaQxIns0oC&printsec=frontcover Portions of your first paragraph match what is in page 50 in that book. I also found http://hestia.typepad.com/flatlander/2010/07/f-pattern-matching-for-beginners-part-1-getting-started.html Portions of your first paragraph match what is in that article. So I used those to help me determine what you meant to say in your first paragraph and I apologize if I got it wrong.
Sam HobbsPosted Jul 18, 2011, 9:44 PM
How does pattern matching in F# compare to regular expressions? Is F# patterns anything like Backus–Naur Form (BNF)? I think it would be very interesting to know how F# patterns compare to those used in the "String Oriented Symbolic Language" SNOBOL of fifty years ago. For the benefit of others, note that there is a difference between Pattern Matching and Pattern Recognition. Pattern Recognition is an Artificial Intelligence thing and can be very complex.