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

There is no reason to have else #37

Closed
lgalfaso opened this issue Jul 8, 2017 · 2 comments
Closed

There is no reason to have else #37

lgalfaso opened this issue Jul 8, 2017 · 2 comments

Comments

@lgalfaso
Copy link

lgalfaso commented Jul 8, 2017

Given that these work:

let length = vector => match (vector) {
    { x, y, z }: Math.sqrt(x ** 2 + y ** 2 + z ** 2),
    { x, y }:   Math.sqrt(x ** 2 + y ** 2),
}

Then there is no reason why this would not work

let length = vector => match (vector) {
    { x, y, z }: Math.sqrt(x ** 2 + y ** 2 + z ** 2),
    { x, y }:   Math.sqrt(x ** 2 + y ** 2),
    x: x,
}
@7fe
Copy link

7fe commented Jul 8, 2017

I believe this has been discussed in more then one place #25

@lgalfaso
Copy link
Author

lgalfaso commented Jul 8, 2017

@limeblack agree, closing it.

@lgalfaso lgalfaso closed this as completed Jul 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants