Re: [racket-users] Unexpected pattern matching behavior

2018-04-25 Thread Sam Tobin-Hochstadt
There are a lot of examples here, so I'll try to offer a broad description of what's going on. 1. Non-linear patterns with `...` do not have the non-linear behavior that you'd want, and fixing this requires changing how `...` is implemented quite drastically. That's why there's a warning. It's not

[racket-users] Unexpected pattern matching behavior

2018-04-25 Thread Greg Rosenblatt
I'm confused by the behavior of pattern matching in some cases. I'll discuss a few sets of examples involving segment patterns, then a mix of `and`, `or`, and `not` patterns. Here is a basic segment pattern matching the entire contents of a list: > (match '(1 2 3) ((list x ...) `(result: