-
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.
[refactor] vectorise: take expected mode, make return type explicit (#58
) It's confusing where responsibility for error handling (expected function, got wrong mode/type) belongs, hence "-- These shouldn't happen" type comments - so, make that clear, removing those comments :) This shortens quite a lot of stuff and makes `getThunks` much simpler, albeit at the cost of a nasty case/match in `mkMapFun` because `next` loses the type of what we've passed in. (A problem in common with other clients of `next`.) --------- Co-authored-by: Craig Roy <[email protected]>
- Loading branch information
Showing
2 changed files
with
37 additions
and
39 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