Parser warnings
Sidef provides the -k
option which will keep track of all the possible unsafe parser interpretations.
For example, if we declare the following function, but we misspell its name when we call it, Sidef will interpret it as a method call, which is probably not what we want:
When the command-line option -k
is specified, the following warning is produced:
One simple way to catch this kind of errors at parse-time, it to always call functions with the explicit .call
method:
The above code will fail to compile, producing the following error message:
Last updated