Page 1 of 1

Thank you for intelligent error messages

PostPosted: Wed Sep 05, 2012 6:02 pm
by ObtuseAngle
Just wanted to say a heartfelt thank you for having such useful error messages in Cobra.

I was translating some Python code across to Cobra, becoming weary and caffeine deficient, and having the compiler tell me to use else if instead of elif was a small moment of unalloyed pleasure.

Re: Thank you for intelligent error messages

PostPosted: Wed Sep 05, 2012 7:42 pm
by Charles
You're welcome! Uninformative error messages have been a pet peeve of mine for a long time, so I wanted to take Cobra in the opposite direction.

If you run across situations where it could have provided more helpful messages, and I'm sure there are many more, please share here on the forums.

Re: Thank you for intelligent error messages

PostPosted: Wed Sep 05, 2012 11:41 pm
by ObtuseAngle
I also particularly like the if you meant "does not equal" then use "<>" for instances of !=
Pair programming with the Cobra compiler :D

The only one where I've blinked: error: Expecting EOL, but got "INDENT" instead., but it is obvious after looking at the code for a second (I'm habituated to the Python style of putting a colon after an if statement, but I'm slowly unlearning that).