You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
Is it meaningful to continue on after you get a syntax warning?user40980– user409802015-11-13 15:17:42 +00:00Commented Nov 13, 2015 at 15:17
-
@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'.Mirac7– Mirac72015-11-13 19:15:49 +00:00Commented Nov 13, 2015 at 19:15
-
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"?user40980– user409802015-11-13 19:18:55 +00:00Commented Nov 13, 2015 at 19:18
-
2I'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.rwong– rwong2015-12-19 17:39:53 +00:00Commented Dec 19, 2015 at 17:39
-
1I'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 diagnoseRichard Tingle– Richard Tingle2015-12-19 19:35:34 +00:00Commented Dec 19, 2015 at 19:35
|
Show 1 more comment
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you