nsensfel / tonkadur

Narrative scripting/programming tool. Write stories in your favorite editor using a feature-rich language, compile them into a very small and simple language to easily integrate them into your game.
https://tonkadur.of.tacticians.online
Apache License 2.0
2 stars 0 forks source link

Add `dictionary` type #25

Open nsensfel opened 3 years ago

nsensfel commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

nsensfel commented 3 years ago

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.