Page 1 of 1

[Wish:] Wish FileApend (a,b,c) to throw as well as any functions

Posted: 07 Sep 2023, 02:56
by V2User
Currently, FileApend (a,b,c) with a space between FileApend and (a,b,c), will run undefinedly. Because (a,b,c) will return c, then run FileApend(c). So, once you accidentally insert a space between them, the behavior would be undefined and might be extremely difficult to check out. This is not in line with our original intention in debug. We should have focused our attention on the substantive issues when debugging.
Writing something nearly identical as functions but totally different, is not permitted by reading even if it's permitted by syntax.
Therefore, I wish any function call like FXXX () would throw an error.

Re: [Wish:] Wish FileApend (a,b,c) to throw as well as any functions

Posted: 07 Sep 2023, 08:43
by V2User
Of course, maybe code extension of VSCode can do that. It would actually be solved if extension could offer tips for that. :)

Re: [Wish:] Wish FileApend (a,b,c) to throw as well as any functions

Posted: 10 Sep 2023, 21:12
by lexikos
It will not "run undefinedly", whatever that means. (a,b,c) is a valid multi-statement expression, which evaluates to c. It is the same as FileAppend c if a and b have no side-effects.