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
3 stars 0 forks source link

string & (rich) text are too confusing. #10

Closed nsensfel closed 3 years ago

nsensfel commented 4 years ago

Knowing whether to use string or text, or even what is currently returned by some computation, is too difficult. Removing the string type might be a solution.

nsensfel commented 3 years ago

As of https://github.com/nsensfel/tonkadur/commit/13ba88ea95012581cf8c1926ecb0ae8123a56f21, the difference is pretty clear. To be absolutely sure what is returned, one can use (text [TEXT]) and (string [STRING]).