-14
Your goal is simple: to fail everything. More precisely, you should write the shortest code that triggers a compilation/interpretation error, or a runtime error.
What does not count
- Failing with symbols that are not covered by the language syntax and are meant to appear only in string literals, comments and other ways to include non-executable data in the code, or are not meant to appear in the code at all
- Warnings and notices that don't prevent successful compilation or execution
- Overflow related errors: infinite loops, recursion limits reaching, stack overflows, out-of-memory errors and so on
This is code-golf, so the shortest code in bytes wins!
By the way, this is probably the only challenge where non-esoterical languages can beat esoterical ones ;-)
3What's wrong with overflow errors? – Jo King – 2018-09-19T23:41:23.870
5Also, almost every answer is going to be a boring one or zero byte syntax error... – Jo King – 2018-09-19T23:45:21.770
@JoKing the focus is on making a program that is totally erroneous, not just implementing a wrong behaviour or striving from finite resources. – bodqhrohro – 2018-09-19T23:46:34.917
10@bodqhrohro The way code golf works is that people post the shortest answer they can find that follows the rules. Whatever you think the focus is meant to be, the winningest answers are blank programs or one-characters syntax errors, so that's what people will post. – xnor – 2018-09-19T23:48:52.160
1What do you mean by "symbols that are not covered by the language syntax"? Is a symbol only valid in string literal considered "not covered by the language syntax"? – tsh – 2018-09-20T09:50:16.060
@tsh yes, such symbols don't count. – bodqhrohro – 2018-09-20T12:12:03.863