-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add setutils.complement, setutils.fullSet #17066
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
Conversation
|
IMO the only thing left here is decide whether to use IMO Please vote with a reaction to this comment:
notethis is related to nim-lang/RFCs#102; IMO |
Note that P.S.: There is a typo in the title, it should be "setutils.fullSet". |
yes, but that's an IMO unfortunate historical artifact that we shouldn't make worse, see nim-lang/RFCs#102 |
|
I'd say the best name to be is |
IMO
|
|
Yes, it should be |
|
Well since the consensus seems to be to (ironically) not use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
|
@beef331 CI fails, see #17066 (comment) for final recommendation before this can be merged |
|
@beef331 CI still fails, after investigating in #17095, it's because so I suggest for now to do the more coarse disabling instead: discard """
targets: "c js"
disabled: "bsd" # pending #17093
""" |
|
@beef331 good that it's green for the 1st time :) I finally figured out the mysterious CI failure for freebsd/openbsd, see #17097; TLDR: builds.sr.ht CI doesn't work like the other CI causing issues for github projects. The fix here (so we could un-disable I'll go ahead and merge this to avoid too many ping pong and will followup with another PR to do this. EDIT => #17098 |
Adds
complementfor builtin sets which inverts the set. Addsfullsetby extension as it was required. Breaks the JS testing for an unevident reason.(EDIT)
notes
proc fullSet*(T: typedesc): auto {.inline.} ==>
proc fullSet*(T: typedesc): set[T] {.inline.} =would give a BUG