Hello!

Stefan Israelsson Tampe <stefan.ta...@spray.se> writes:

> While eating the dogfood of the new match macro I come across a bug
> e.g, this does not work!
>
> (match '(a b) ((and x (a ... b)) a))

But:

  scheme@(guile-user)> (match '(a b) ((and x (a . b)) a))
  $1 = a

According to the grammar in the manual, I don’t think literal ‘...’ can
be used in the middle of a list; it should only be used at the end of a
list, where it means “zero or more”:

  scheme@(guile-user)> (match '(a b) ((a ...) a))
  $2 = (a b)

Thanks,
Ludo’.


Reply via email to