Closed Skaruts closed 2 years ago
As you know already, microScript was designed to avoid any use of nil
, null
, none
or undefined
; I understand your request but I am reluctant to add more keywords to the language, even if it is just for syntax highlighting. I have two suggestions for you:
false
to initialize your variables (false == 0
)NIL = 0
in your code and use it for that purpose (caps make it stand out maybe!)
In the same way the text editor recognizes
true
andfalse
as keywords, it could also recognize the keywordnil
.Personally I already use
nil
for setting variables as null, just because it makes them stand out from other variables that are actually numeric. The only thing I feel is missing is havingnil
in a color that stands out, liketrue
andfalse
do.I've been misunderstood about this before, so I should make it clear: I'm not asking for a null type to be added to microscript. I'm suggesting that the text editor could recognize and highlight a keyword.