-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
standard library: support "n"/"*n" in file reader functions
A pragmatic implementation which describes it as a polymorphic function which covers the most common cases first, avoiding the need for casts. Yes, this is a form of poor-man's dependent typing and abusing enums as poor-man's literal types. No, I don't want to add fixed-arity cases for all combinations of 2, 3, 4... arguments -- 1-arity and the variadic fallback should be enough. Closes #718.
- Loading branch information
Showing
3 changed files
with
264 additions
and
66 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
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
Oops, something went wrong.