zinke owl cabre is a user on mastodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

If you're going to make up a half-assed domain-specific scripting language, here are some things you need to include in version 1.0 even if you think you will never need them and nobody else will ever use it:

- iteration over the *values* in arrays, not only the indices
- ditto for the values in associative arrays
- a way to append values to an array
- a way to print to stderr
- a way to print some text without appending a newline
- a way to accept arbitrary command line options

</rant>

zinke owl cabre @zwol

Also, if you have strong types and make a distinction between signed and unsigned integers, and your documentation clearly states that vectors are indexed by unsigned integers, then iterating over the indices of a vector should _not_ yield signed integers. Particularly if there are no cast operators in the language. No, this is not a hypothetical.

· Web · 0 · 0