-
Notifications
You must be signed in to change notification settings - Fork 22
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
redo changes from #86/#90 #91
Conversation
I forgot that last time, but https://nim-lang.org/docs/manual.html#types-tuples-and-object-types |
oops. well i’ll work on the regex some more later today. i have an idea of how it will work, hopefully it’s right. |
@RSDuck is it possible to put a case expression in an if/when/elif? it seems to not work, i'm getting errors from the extension, but if it does the regex i came up with wouldn't work there. |
oh im going to have to create a new PR right, i was confused when my commit didn't show up here |
yes it's possible like this: if (case range[0..1](1)
of 0: false
of 1: true):
echo "miauz" |
does it require the parens? |
I think yes, I cannot get it to work without them, though I'm not 100% sure. |
Not at my computer, but I'm pretty sure it'dt be possible to do similar things in a bracket expression that evaluates to an array index for lookup. Basically the nesting could be achieved in a few ways. |
this was easier than trying to rebase