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

Introduce good practice for user-defined computations, instructions, and types #32

Closed nsensfel closed 3 years ago

nsensfel commented 3 years ago

In order to avoid breaking backward compatibility, user-defined computations, instructions, and types should have names that cannot conflict with future core language additions. One way of ensuring this is by recommending users name theirs with a specific prefix, such as #

(#rotate list)
(global #character main_character)
(#set_name main_character (#string:append (#get_name main_character) (string the Great)))

Non-complying names should trigger a warning.