FluxML / FluxML/MacroTools.jl

Match types when slurping

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

Description

I couldn't work out how to match types when slurping with `__`:

```
block = quote
begin
north
east
south
west
end
end
```
Untyped slurping works:
```
symbols = @match block begin
begin
s__
end => s
end
```
but I wanted to match only `Symbols`, so I tried this but didn't work:
```
symbols = @match block begin
begin
s__Symbol
end => s
end
```

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.