Use this tag for questions about semicolon-inference in programming languages, which determines if semicolon are necessary or not.
Semicolon-inference is the ability of a programming language to work without semicolon. That means the compiler can decide by itself if a statement is complete or not.
A line ending is treated as a semicolon unless one of the following conditions are true:
- The line ends in a word that would not be legal as the end of a statement
- The next line begins with a word that cannot start a statement
- The line ends while inside parentheses(...) or brackets[...]