vorple / inform7

Inform 7 extensions and templates
Other
9 stars 4 forks source link

Add more wording for execute JavaScript command. #17

Closed Natrium729 closed 5 years ago

Natrium729 commented 6 years ago

I think a the should be allowed after execute. Also, maybe allow JS in place of JavaScript:

To execute the/-- JavaScript/JS command/code:

You could even allow JS instead of JavaScript in other phrases, such as the text returned by the JS command.

Natrium729 commented 6 years ago

Also, the the in value returned by the JavaScript command and the like should maybe be optional.

juhana commented 6 years ago

Agreed on the "the"s which should be available and optional, but I'm a bit reluctant to add abbreviations which would go against the I7 Standard Library style.

If you end up needing lots of JavaScript commands in a project, you can create a shorthand for yourself:

To JS (code - text):
  execute JavaScript command code.
Natrium729 commented 6 years ago

I wasn't sure too, that why I wrote "maybe"! However, since "JS" is quite a standard abbreviation for "JavaScript", it may be worth thinking about it.

But then, as you wrote, I could just add my own phrase, so it's not a big deal.