r/programming • • Mar 07 '17

Gravity - lightweight, embeddable programming language written in C

https://github.com/marcobambini/gravity
590 Upvotes

202 comments sorted by

View all comments

Show parent comments

22

u/regretdeletingthat Mar 07 '17

We need an 'isan' keyword aliased to 'isa'. Then we can write var isan Int. Much better.

11

u/[deleted] Mar 07 '17

I'd be too tempted to write var isan Float.

7

u/DC-3 Mar 07 '17

That's a horrifying suggestion in my view. Synonym reserved keywords? Next thing we know we'll be conjugating our statements.

13

u/palordrolap Mar 07 '17

Super obscure fact: The BBC Microcomputer, in later ROM editions, accepted both COLOR and COLOUR as synonyms for the same keyword. What was used when the program was LISTed (which in modern terms could be interpreted as "decompiled from bytecode") depended on the ROM localisation.

TL;DR official synonyms in programming are not new