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

Consider is operator to check variant of datatypes #422

Open
marc0olo opened this issue Oct 31, 2022 · 1 comment
Open

Consider is operator to check variant of datatypes #422

marc0olo opened this issue Oct 31, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@marc0olo
Copy link
Contributor

marc0olo commented Oct 31, 2022

as discussed in chat.

given datatype metadata = MetadataIdentifier(string) | MetadataMap(map(string, string)) it could be helpful to easily check if a value is of variant MetadataIdentifier or MetadataMap

@marc0olo marc0olo added the enhancement New feature or request label Oct 31, 2022
@marc0olo
Copy link
Contributor Author

marc0olo commented Oct 31, 2022

the discussion popped up when implementing these lines of code which could be replaced with a require then:

@ghallak ghallak changed the title consider is operator to check variant of datatypes Consider is operator to check variant of datatypes Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant