Michiel asked this a couple of days ago, because minigrace accepts it, but the spec says "no". I said that the spec was right, and minigrace was wrong.
Then just today, I came across a good use case for __ as an identifier.
This is in Ruby:
The point here is that with true and false as the table entries, it's really hard to distinguish one from the other, and hence to notice patterns. Defining __ = false allows one to replace the falses by the visually much-less-obtrusive __. I rather like this.
Do we want to consider allowing Grace identifiers to start with a letter or an underscore?
Michiel asked this a couple of days ago, because minigrace accepts it, but the spec says "no". I said that the spec was right, and minigrace was wrong.
Then just today, I came across a good use case for __ as an identifier. This is in Ruby:
The point here is that with
true
andfalse
as the table entries, it's really hard to distinguish one from the other, and hence to notice patterns. Defining__ = false
allows one to replace thefalse
s by the visually much-less-obtrusive__
. I rather like this.Do we want to consider allowing Grace identifiers to start with a letter or an underscore?