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

Add dictionary type #25

Open
nsensfel opened this issue Apr 30, 2021 · 3 comments
Open

Add dictionary type #25

nsensfel opened this issue Apr 30, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request fate Issues relating to the Fate language

Comments

@nsensfel
Copy link
Owner

A dictionary could be added without any modification to Wyrd by using lists of (cons KEY_TYPE VALUE_TYPE).
KEY TYPE would have to be a comparable type (same as with a set).

@nsensfel nsensfel added enhancement New feature or request fate Issues relating to the Fate language labels Apr 30, 2021
@nsensfel nsensfel added this to the V2 - Release Candidate 0 milestone Apr 30, 2021
@nsensfel nsensfel self-assigned this Apr 30, 2021
@nsensfel
Copy link
Owner Author

nsensfel commented May 2, 2021

This conflicts with structure declaration in Fate, as those as referred to as dictionaries. Putting this as a V1 milestone to avoid having to break backward compatibility right away.

@nsensfel
Copy link
Owner Author

nsensfel commented May 2, 2021

dict_to_list, dict_from_list, dict_keys, dict_values, dict_merge, dict_filter, dict_set, dict_remove , dict_has, and dict_get.

@nsensfel
Copy link
Owner Author

Enough has been done to ensure that backward compatibility will not be broken. Actual implementation of this feature is not urgent and can wait for the milestone following a stable release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fate Issues relating to the Fate language
Projects
None yet
Development

No branches or pull requests

1 participant