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

[xoptional] String representation for missing values #8

Open
SylvainCorlay opened this issue Sep 19, 2017 · 1 comment
Open

[xoptional] String representation for missing values #8

SylvainCorlay opened this issue Sep 19, 2017 · 1 comment

Comments

@SylvainCorlay
Copy link
Member

Currently, ostream operator() prints N/A for missing values, which cannot be used as an input for initializing missing values.

Maybe printing xt::missing<T> with the proper string representation of type T would be a better choice.

(Moved from xtensor-stack/xtensor#381)

@SylvainCorlay
Copy link
Member Author

SylvainCorlay commented Sep 19, 2017

There was a suggestion by @wolfv about a tag value castable to a missing xoptional.

Also, std::optional has std::nullopt_t.

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

No branches or pull requests

1 participant