-
Notifications
You must be signed in to change notification settings - Fork 1
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
Can we simplify this? #45
Comments
We can write |
The reason lambdas are used is lazy execution. We do not need to calculate the string until the exception is thrown. |
Use |
It looks verdy difficult
Ranges/cpp/Platform.Ranges/EnsureExtensions.h
Lines 33 to 43 in d7b5ac8
Why do we create lambdas, recursively descend into other functions, sums a bunch of lines to check that an element is in the range? And why do we throw an exception if the element is not in the range, when we can return a boolean value? Can we simplify this?
The text was updated successfully, but these errors were encountered: