What would be the point of a special "else if" construct in C-style languages? Genuinely asking; I can't see how it would be different other than adding complexity to the parser.https://twitter.com/mathias/status/1091174453763928066 …
-
-
Makes sense. I guess "elif" is required in Python because indentation would be different for nested blocks.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
…but it’s just an `if` nested within an `else` block without braces.
else if (x) {}
→
else { if (x) {} }
The more you know