Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 168

For questions comparing the implementation of a feature on different languages.

36 votes
Accepted

Why do some PL choose to have a dedicated keyword for elseif instead of like in C?

They do this to avoid the dangling else problem. In many programming languages, the syntax for else-if statements is ambiguous. For example, consider the following C program: if(a) if (b) x++; else y+ …
hugomg's user avatar
  • 1,365
13 votes

What are the drawbacks of using indentation for code blocks?

There is more than one way to define layout-sensitive programming languages, where indentation matters. The Python way is different from the Haskell way, which is different from the F# way... For refe …
hugomg's user avatar
  • 1,365