[swift-evolution] superscripts, subscripts, etc.

John Payne jt511p at mac.com
Tue Oct 3 00:56:38 CDT 2017

Chris Lattner wrote:

> Just FWIW, IMO, these make sense as operators specifically because they are commonly used by math people as operations that transform the thing they are attached to.  Superscript 2 is a function that squares its operand.  That said, perhaps there are other uses that I’m not aware of which get in the way of the utilitarian interpretation.

But there are SO MANY uses for superscripts, subscripts, and other such annotations, and they are all context specific, just in math, without getting into chemistry, physics, statistics, and so forth.

They’re really more like methods on the object to which they’re attached, or the combination of a method and an argument.  Wouldn’t classing them as identifiers lend itself better to this?

Apologies in advance if this is a waste of everyone’s time.

- John Payne

More information about the swift-evolution mailing list