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

Method "to(unit)" #28

Open
WildOrangutan opened this issue Oct 21, 2020 · 1 comment
Open

Method "to(unit)" #28

WildOrangutan opened this issue Oct 21, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@WildOrangutan
Copy link

I think it would be nice to have methods, that convert to unit based on method argument.

Example:

var userSelectedUnit = LengthUnit.kilometer;
500.toUnit(userSelectedUnit);

// Instead of:
500.toKilometer()
@WildOrangutan WildOrangutan added the enhancement New feature or request label Oct 21, 2020
@Kleak
Copy link
Owner

Kleak commented Oct 23, 2020

it's totally something we can add.

PR are welcome for it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants