Skip to content

Added UniOperand Cast and Type Operand Support #215

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

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

MerlinofMines
Copy link
Owner

This PR updates the cast operation to act as either a UniOperand or a BiOperand. As a UniOperand it will attempt to parse a string as the appropriate primitive
without needing to specify the expected type. This is useful for parsing ambiguous input without causing script halting exceptions.

This commit also implements the Type operation, which enables you to get the type of a variable. This is also useful for inspecting resolved input to verify it is
the correct type before attempting to use it as the type you are expecting.

This commit also fixes a previous bug where invalid cast and round operations were not logged correctly.

This commit also updates some incorrect documentation around vectors and adds documentation around parsing GPS coordinates.

This commit updates the cast operation to act as either a UniOperand or a BiOperand.  As a UniOperand it will attempt to parse a string as the appropriate primitive
without needing to specify the expected type.  This is useful for parsing ambiguous input without causing script halting exceptions.

This commit also implements the Type operation, which enables you to get the type of a variable.  This is also useful for inspecting resolved input to verify it is
the correct type before attempting to use it as the type you are expecting.

This commit also fixes a previous bug where invalid cast and round operations were not logged correctly.

This commit also updates some incorrect documentation around vectors and adds documentation around parsing GPS coordinates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant