-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@matchast does not produce informative error message #162
Labels
enhancement
New feature or request
Comments
Thanks for your informative issue. You might change function MLStyle.pattern_uncall(::Type{Floating}, to_pattern, _, _, arguments)
@matchast only(arguments) quote
$s*(1+$f)*2^$e => to_pattern(:(BinaryFloatF($s,$f,$e)))
$s*$m*2^$e => to_pattern(:(BinaryFloat($s,$m,$e)))
end
end The error message should be improved and I'm to figure out why we decided to use |
I see, it is documented that way, I just didn't notice. Thanks. |
thautwarm
changed the title
@matchast fails to compile
@matchast does not produce informative error message
Apr 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
@matchast
docs say there is no need to quote patterns so I tried that but I got an error. Using@match
and quoting works.MLStyle v0.4.17
Julia 1.9.0-beta3
The text was updated successfully, but these errors were encountered: