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

Please document hana::transform side effect ordering #448

Open
dcolascione opened this issue May 22, 2019 · 1 comment
Open

Please document hana::transform side effect ordering #448

dcolascione opened this issue May 22, 2019 · 1 comment

Comments

@dcolascione
Copy link

@dcolascione dcolascione commented May 22, 2019

GCC appears to evaluate transform function calls out of order, which I think it's allowed to do because function argument evaluation order is undefined. Hana should explicitly document the lack of ordering guarantees in transform.

@ricejasonf
Copy link
Collaborator

@ricejasonf ricejasonf commented May 22, 2019

It is documented in the manual here: http://boostorg.github.io/hana/index.html#tutorial-algorithms-effects

The issue with documenting it for hana::transform itself is that each data-type can have it's own implementation that behaves differently. I'm guessing the one you are considering is for any hana::Sequence.

Take a look at the algorithms for hana::Monad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.