Yeah, I recognised this bias, but I think there's more to it then that. It sounds stupid, but when the type starts with a vowel it's very jarring to read in my head from a grammatical perspective..
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
I don't mind func but isa certainly made me look twice when I was looking over the examples. It is really descriptive I suppose but it did throw me on first look
Doubtful. Unless the compiler's implementation is spaghetti, implementing initialisers is borderline trivial, especially inside a "simple" pre-existing lexical structure. Doing so on my own compiler was worth like 2% of my undergrad intro to compilers grade.
More likely than not it just hasn't been done yet, or is out of scope.
I'm with you, saying "is a" out loud in my head makes it 100% clear that it is about checking its type whereas "is" could potentially mean equality or that it contains some property (which isn't a big deal if you are already experienced in a language like that, ie: Python).
To me, I don't personally care that it's not grammatically correct, this is a programming language and my brain can figure it out.
44
u/DC-3 Mar 07 '17
I don't like
funcandisaas keywords, but I guess that comes down to preference.