| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Rebase to main. Make is() functions constexpr |
Sorry, something went wrong.
|
Might require #90 for some use cases. |
Sorry, something went wrong.
|
Conceptually can we make std::optional<T> to be isomorphic to std::variant<std::monostate,T> from the cpp2 language/library point of view as these types are isomorphic mathematically as well? This would definitely simplify things on multiple levels. |
Sorry, something went wrong.
|
Thanks! About half of this (parsing and literals) seems to be duplicated from #79, so I'll focus on the variant, optional, and any parts... more soon... |
Sorry, something went wrong.
|
OK, half of this which wasn't about variant/optional/any was merged in the commit c77de70 that closed #79, and I'm going to apply the rest for those three standard types in a separate commit to follow the pattern of commit c77de70 to use the two-parameter "is value" pattern. Thanks again! |
Sorry, something went wrong.
|
I've now added this with 2f37277 - thanks again. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Current implementation of inspect and is allows to inspect types. #79 add inspection capabilities to check values of variables (what allows to replace cpp1 switches).
This change introduce possibility to inspect values stored in std::variant and std::optional what make given code work:
or you can use it as if statement with std::optional
or std::variant
This PR is based on #79