-
Notifications
You must be signed in to change notification settings - Fork 21
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
Allow units of measure in sequence ranges #535
Comments
Looks like the problem is that units of measure don't support the Since the
Alternatively, or if this suggestion doesn't get approved, you can suggest to add |
Cool, I didn't know that adding measure to the steps would work! |
@gmpl You are correct about the original reasons for not allowing However there's no reason not to allow it on non-generic units. So we should really just approve the suggestion I think and find a way to make it happen |
These extensions are being considered rather ad-hoc in order to make certain patterns shorter, irrespective of whether there is a correspondence to mathematical/physical units and whether the brevity gives a false sense of simplicity.
|
I propose we extend sequence expressions to handle ranges involving units of measure. Currently we cannot do the following:
The existing way of approaching this problem in F# is to generate a range from bare integers and then map a multiplication to add the dimension
Pros and Cons
The advantages of making this adjustment to F# are
The disadvantages of making this adjustment to F# are
Extra informtion
Estimated cost (XS, S, M, L, XL, XXL):
M? (because of the added complication of
min .. step .. max
)Related suggestions: (put links to reated suggestions here)
Allow units of measure in for loops #534
Affadavit (must be submitted)
Please tick this by placing a cross in the box:
Please tick all that apply:
The text was updated successfully, but these errors were encountered: