forked from nim-lang/Nim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sequtils: simplify
toSeq
implementation (nim-lang#750)
## Summary Don't use complex macros, but instead use `compiles` + generic routines for achieving the same. This should slightly improve compile times for code often using `toSeq`, and is also another step towards less macro usage during bootstrapping. ## Details This change partially reverts nim-works/nimskull#151, which replaced the usage of `compiles` with macros. However, compared to macros, `compiles` is the less problematic feature usage here, allowing the implementation to be significantly less complex. In addition, the `compiles` here is also easier to replace with type-inspection routines in the future (such as `x is iterator`, once that works).
- Loading branch information
Showing
1 changed file
with
19 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters