Is there a bool type or not? Clarify documentation
Created by: motib
There is confusion on the issue of bool types. On the one hand, types are not declared, nor are the boolean values true and false. On the other hand, an attempt to use the logical operator not leads to an error on bool types. At the very least, the documentation should clarify that (apparently) comparison operators return 0 or 1 not that they return true or false, and the logical operators defined appropriately.
var found
found = false # Error: false is not a defined variable
found = 0 if not found then # Error: expecting bool type [!!!], found integer type instead end