xtl icon indicating copy to clipboard operation
xtl copied to clipboard

[xoptional] String representation for missing values

Open SylvainCorlay opened this issue 8 years ago • 1 comments

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 https://github.com/QuantStack/xtensor/issues/381)

SylvainCorlay avatar Sep 19 '17 13:09 SylvainCorlay

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

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

SylvainCorlay avatar Sep 19 '17 13:09 SylvainCorlay