-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
sequtils.nim: Change some func
back to proc
#16309
Conversation
I think adding module to |
CI failure is unrelated:
Reported here treeform/fidget#121 |
There's a disagreement here, so maybe this revert should wait until this is clarified. The current nim implementation allows |
Sure. I just made this PR so it's easily available if it's what we want.
I was thinking this too. It's true, given that CI is green despite |
Now that |
This commit changes the funcs that take a `proc` parameter back to procs. This reverts some of commit 6f57eba: sequtils.nim: Use `func` (nim-lang#16293) See also: - nim-lang#16303 - nim-lang#16304
9137bd2
to
a600751
Compare
Rebased on The relevant diff is only: template applyIt*(varSeq, op: untyped) =
- ## Convenience template around the mutable ``apply`` proc to reduce typing.
+ ## Convenience template around the mutable `apply` proc to reduce typing. |
This commit changes the funcs that take a `proc` parameter back to procs. This reverts some of commit 6f57eba: sequtils.nim: Use `func` (nim-lang#16293) See also: - nim-lang#16303 - nim-lang#16304
This commit changes the funcs that take a `proc` parameter back to procs. This reverts some of commit 6f57eba: sequtils.nim: Use `func` (nim-lang#16293) See also: - nim-lang#16303 - nim-lang#16304
This PR is a partial revert of commit 6f57eba (#16293), in case that's preferred to a full revert.
It changes the funcs that take a
proc
parameter back to procs.See: #16303 and #16304 (comment):
Note that this PR doesn't fix regressions that @timotheecour mentions in #16305. For example:
still produces this error when compiling with
--experimental:strictFuncs
: