KM8: Local and Instance Variables

I agree. The characters initially selected were less than optimial.

Proposal for Local/Instance Characters

æ for A Local Variable Prefix
Æ for A Instance Variable Prefix

These characters/keys are easily accssible from the standard Mac keyboard as:
æ -- '
Æ -- '

I really like these choices because:

  1. They are easy to type
  2. They both use the same key with OPT, one with SHIFT
  3. I think these characters are rarely used, especially as the prefix of a word.

Examples

æLocalVar1
ÆInstanceVar1

One more point:
I think you should also allow two underscores after the key word:

"Local__" as a local variable prefix
"Instance__" as an instance prefix

so that:

  1. The prefix does NOT show in a Prompt action
  2. The whole variable word is easily selectable by a double-click.

So, Peter, you guys, what do you think?

3 Likes