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

Support empty constructors #389

Merged
merged 1 commit into from
Jun 16, 2023
Merged

Conversation

niknetniko
Copy link
Member

Allows the use of our "cast" functions without arguments to represent "empty" values. This allows writing set() instead of set([]), which should be more intuitive for those familiar with Python.

This is currently support for "sequence" types, i.e. set, sequence, array, tuple, and "map" types, i.e. map.

Fixes #385.

@niknetniko niknetniko merged commit 3fd9a31 into master Jun 16, 2023
4 checks passed
@niknetniko niknetniko deleted the enhancement/empty-set-dict-literals branch June 16, 2023 13:10
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.

Allow simple representation of empty set
1 participant