Timeline for How does Python's handling of line-breaks differ from JavaScript's automatic semicolons?
Current License: CC BY-SA 4.0
31 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Feb 15, 2021 at 9:18 | history | suggested | Tom Au | CC BY-SA 4.0 | make the question less opinion based by asking about "best practices" rather than "opinions." |
| Feb 11, 2021 at 14:01 | review | Close votes | |||
| Feb 16, 2021 at 3:06 | |||||
| Feb 11, 2021 at 13:46 | history | protected | gnat | ||
| Feb 11, 2021 at 4:16 | review | Suggested edits | |||
| S Feb 15, 2021 at 9:18 | |||||
| Aug 7, 2011 at 20:37 | history | edited | user8 | CC BY-SA 3.0 | Make title more clear |
| Aug 7, 2011 at 19:19 | comment | added | user7519 | "explicit is always better than implicit" | |
| Aug 7, 2011 at 19:03 | comment | added | JeffO | Copy and paste strikes back. | |
| Aug 7, 2011 at 18:58 | answer | added | Closure Cowboy | timeline score: 2 | |
| Aug 7, 2011 at 18:51 | answer | added | apinstein | timeline score: 1 | |
| Aug 7, 2011 at 18:44 | answer | added | Kos | timeline score: 4 | |
| Aug 7, 2011 at 18:39 | answer | added | jay_soo | timeline score: 2 | |
| Aug 7, 2011 at 18:09 | answer | added | Henrik | timeline score: 30 | |
| Aug 7, 2011 at 17:43 | answer | added | Ryan C. Thompson | timeline score: 2 | |
| S Aug 7, 2011 at 17:09 | history | suggested | Chris Warrick | CC BY-SA 3.0 | python comments use # |
| Aug 7, 2011 at 17:08 | comment | added | Einar Egilsson | @Aaron: Ah, yes, copy paste error :) | |
| Aug 7, 2011 at 16:47 | review | Suggested edits | |||
| S Aug 7, 2011 at 17:09 | |||||
| Aug 7, 2011 at 16:46 | comment | added | Aaron Dufour | You might consider writing valid python in your examples. The comment indicator is #, not `//'. | |
| Aug 7, 2011 at 16:39 | comment | added | Jannes Meyer | Here are some examples where ASI doesn't work as expected in JavaScript: jibbering.com/faq/notes/code-guidelines/asi.html | |
| Aug 7, 2011 at 16:28 | comment | added | JD Isaacks | I put semicolons in JavaScript for same reason I use periods in sentences. Sure the interpreter can usually make sense of your statements without them but its just bad form. | |
| Aug 7, 2011 at 16:25 | answer | added | zzzzBov | timeline score: 3 | |
| Aug 7, 2011 at 16:24 | answer | added | Eastern Monk | timeline score: 2 | |
| Aug 7, 2011 at 16:06 | comment | added | CamelBlues | Superstition... | |
| Aug 7, 2011 at 15:59 | answer | added | Svante | timeline score: 7 | |
| Aug 7, 2011 at 15:46 | comment | added | Einar Egilsson | My point wasn't that using semicolons and not using them worked exactly the same, the point was that the edge cases in javascript and python were the same. There certainly are a few edge cases where you have to know what's happening. Best article I've read on the subject: inimino.org/~inimino/blog/javascript_semicolons | |
| Aug 7, 2011 at 15:45 | answer | added | subiet | timeline score: 1 | |
| Aug 7, 2011 at 15:42 | comment | added | Reid | It doesn't work exactly the same. The semicolon insertion does not go wherever the newline is, necessarily, in JavaScript. See the second example on this Wikipedia page. The semicolon is not inserted where the newline is in that example. | |
| Aug 7, 2011 at 15:39 | history | tweeted | twitter.com/#!/StackProgrammer/status/100229705596289024 | ||
| Aug 7, 2011 at 13:53 | answer | added | tdammers | timeline score: 65 | |
| Aug 7, 2011 at 13:50 | answer | added | Deradon | timeline score: 21 | |
| Aug 7, 2011 at 13:38 | answer | added | Chris | timeline score: 1 | |
| Aug 7, 2011 at 13:33 | history | asked | Einar Egilsson | CC BY-SA 3.0 |