|
|
|
|
|
by ArneBab
3382 days ago
|
|
The natural script writing syntax¹ is an example: The `Enter` Macro defines macros which use their arguments as data (no need to quote anything), but execute any part prefixed with a comma as actual code. (Enter (Arne)) (Arne (Hello!)
(Who are you?)) The above is actual code which makes Arne say two lines of text. Essentially the Enter defines a new specialized control structure which is optimized for the task of defining lines of text for a character in an RPG to say. This removes cognitive overhead while writing a scene: You only write what which character should say. Essentially you invest into creating a better-fitting tool to simplify all following work. With Scheme you can take this further than with anything else — short of taking over the whole language implementation (which for example Facebook did with their new PHP implementations. With Guile you can take the path Facebook took, without first needing to be a multi-billion-dollar company). But as any other power, use this with care: You won’t want to make your code so much different from what other Schemers do that others have a hard time joining in. ¹: https://fosdem.org/2017/schedule/event/naturalscriptwritingg... — also see the video and the slides which show the difference between this syntax and examples from other methods, including one of my earlier tries with Python. |
|