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.
Forums
Thank you for intelligent error messages
3 posts
• Page 1 of 1
Thank you for intelligent error messages
99 programming bugs in the code, 99 bugs in the code, fix 1 bug and compile it again, 101 programming bugs in the code
- ObtuseAngle
- Posts: 42
- Location: Gippsland, Australia
Re: Thank you for intelligent error messages
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.
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.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
Re: Thank you for intelligent error messages
I also particularly like the if you meant "does not equal" then use "<>" for instances of !=
Pair programming with the Cobra compiler
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).
Pair programming with the Cobra compiler
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).
99 programming bugs in the code, 99 bugs in the code, fix 1 bug and compile it again, 101 programming bugs in the code
- ObtuseAngle
- Posts: 42
- Location: Gippsland, Australia
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 11 guests