Timeline for How to approach syntax errors when developing a lexical analyser?
Current License: CC BY-SA 3.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 20, 2015 at 12:39 | answer | added | Blrfl | timeline score: 1 | |
| Dec 20, 2015 at 3:25 | history | tweeted | twitter.com/StackProgrammer/status/678415924706324480 | ||
| Dec 19, 2015 at 19:35 | comment | added | Richard Tingle | I've never found "fail late" behaviour anything but really angering (a complete compile with compile time errors is like a free [if only partially complete] test suite). Fail late code has a much higher chance of getting into production and being hard to diagnose | |
| Dec 19, 2015 at 18:23 | history | reopened |
enderland gnat rwong Telastyn Blrfl |
||
| Dec 19, 2015 at 17:39 | comment | added | rwong | I'm voting to reopen/migrate this question because it appears to deserve a proper answer, but possibly from an audience with stronger expertise with compiler and language design. Also, it might be the case it is too broad, but this is not for us (i.e. it is only proper for people with that expertise) to decide. | |
| Dec 19, 2015 at 17:34 | history | edited | enderland | CC BY-SA 3.0 |
added 250 characters in body; edited title
|
| Dec 18, 2015 at 23:38 | review | Reopen votes | |||
| Dec 19, 2015 at 18:27 | |||||
| Nov 19, 2015 at 6:11 | history | closed |
Dan Pichelman Ixrec Scant Roger |
Opinion-based | |
| Nov 15, 2015 at 13:42 | audit | Suggested edits | |||
| Nov 15, 2015 at 13:42 | |||||
| Nov 13, 2015 at 20:34 | comment | added | Mirac7 | @MichaelT If the faulty code needs to be executed, SyntaxErrors would be raised unconditionally. The only difference would be when the code doesn't execute. Language is written for graphics generation/manipulation software. | |
| Nov 13, 2015 at 19:18 | comment | added | user40980 | Or you could continue on and generate completely incorrect values. Which returns to "is it meaningful to continue?" What is the worst thing that can happen if you get an incorrect answer and warnings (that are ignored)? If this is a minor inconvenience - that's one thing. If it is controlling life support equipment or the message on the front page of an important site, that's another. What are the repercussions of the code "working"? | |
| Nov 13, 2015 at 19:15 | comment | added | Mirac7 | @MichaelT Well, if it so happens that the faulty code doesn't run anyway, your algorithm can still execute without problems, and you can repair it after the execution. I figure it could be very useful for debugging, but I'm worried about possible abuse/misuse of this 'feature'. | |
| Nov 13, 2015 at 17:49 | review | Close votes | |||
| Nov 19, 2015 at 6:11 | |||||
| Nov 13, 2015 at 15:17 | comment | added | user40980 | Is it meaningful to continue on after you get a syntax warning? | |
| Nov 13, 2015 at 15:17 | review | First posts | |||
| Nov 13, 2015 at 17:34 | |||||
| Nov 13, 2015 at 15:15 | history | asked | Mirac7 | CC BY-SA 3.0 |