Skip to content

Pattern matching failture with simple slurps #33

@fcard

Description

@fcard
julia> @letds [*{x}, a, *{y}, 10] = :[1,2,3,4,5,6,7,8,9,10] (x,y)
ERROR: ArgumentError: pattern`([(:*){x}, a, (:*){y}, 10],)` cannot be matched with ([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],)

What the! I was sure those sort of simple things were working before. How am I to brag about having a Regex for Exprs when I can't even do this! Hmm, Regex for Exprs, maybe I should branch that off in its own package, that could interest people more. (it won't) MetaRegex.jl, that surely will catch some eyes. (pffffff)

Also, slurp, what a word to keep saying over and over. Once more I blame it all on Mike Innes, he introduced me to the term! Curse you Mike Innes for making me uncomfortable discussing my package with myself! (moreso!)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions