Skip to content
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

High and Low init #119

Closed
oscbyspro opened this issue Jun 9, 2023 · 0 comments
Closed

High and Low init #119

oscbyspro opened this issue Jun 9, 2023 · 0 comments
Labels
addition oh, so shiny!
Milestone

Comments

@oscbyspro
Copy link
Owner

From oscbyspro/Numberick#7

There are two High and Low initializers at this moment:

init(ascending:  (low:  Low,  high: High))
init(descending: (high: High, low:  Low ))

While they are the most flexible options, they are also the least legible because they require 4 parentheses and sometimes an alias. I think that's a bit much, so I will add 4 briefer ones in order to alleviate my tuple-fatigue.

init(high: High)
init(low:  Low )
init(high: High, low:  Low )
init(low:  Low,  high: High)
@oscbyspro oscbyspro added the addition oh, so shiny! label Jun 9, 2023
@oscbyspro oscbyspro added this to the v3.0.0 milestone Jun 9, 2023
oscbyspro added a commit that referenced this issue Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition oh, so shiny!
Projects
None yet
Development

No branches or pull requests

1 participant