FluxML / FluxML/MacroTools.jl

Pattern matching a namespaced type

Open
#95 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
320
Forks
84
PR merge metrics
No merged PRs in 30d

Description

It seems the pattern-matching syntax gets confused by the `.` in the type:

```
julia> using MacroTools, Markdown

julia> @capture(md"_hello_", x_Markdown.MD)
false

julia> using Markdown: MD

julia> @capture(md"_hello_", x_MD)
true
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.