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

Type casting / parsing operations #149

Open
divarvel opened this issue Oct 10, 2023 · 0 comments
Open

Type casting / parsing operations #149

divarvel opened this issue Oct 10, 2023 · 0 comments

Comments

@divarvel
Copy link
Collaborator

divarvel commented Oct 10, 2023

We could introduce parsing operations, allowing to try converting strings into numbers, or JSON strings / bytearrays into map / arrays.

This would require null (#148) for parsing failures, but could give more flexibility)

syntax ideas

  • as keyword. readable, but would make the grammar more complex
  • as_xxx() methods. a bit less readable and a tad more ad-hoc, but integrates nicely with the grammar
@divarvel divarvel mentioned this issue Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Design
Development

No branches or pull requests

1 participant