Linked Questions

7 votes
0 answers

Does code need to be 100% syntactically correct? [duplicate]

I've come across the following answer in a code-golf challenge in Haskell, where one has to provide a function: <bindings> <expression> Now, the last ...
Zeta's user avatar
  • 701
1 vote
0 answers

Function not that directly used allowed? [duplicate]

In this answer, the function is defined as With(Math)f=(a,b,c,d)=>... (1) However, f is not used in the function, so it ...
l4m2's user avatar
  • 17.1k
0 votes
0 answers

Rules for importing when the result is an anonymous function [duplicate]

For the Friday the 13th challenge, I have some code that requires an import, but results in an unnamed function when golfed: ...
Carcigenicate's user avatar
418 votes
52 answers

Loopholes that are forbidden by default

There are a number of standard loopholes which experienced question-setters seek to explicitly close. However, inexperienced question-setters may unintentionally leave them open, or respondents may ...
37 votes
15 answers

New users' guides to golfing rules in specific languages

What are the most important rules a first-time golfer in a given language should know? For instance, how do golfed programs usually take input and output? Each language should have a single CW answer ...
15 votes
4 answers

Should function literals be allowed when a function is asked for?

I'm arguing with the poster of this answer. The function literal as is doesn't cause the function to be defined, it has to be assigned to a variable, giving it a name or wrapping it like ...
alexia's user avatar
  • 1,796
24 votes
3 answers

On scoring builtin functions

Suppose there's a challenge which can be solved completely by a builtin function, and functions are allowed. Note that as of writing the standard loophole for builtins is heavily disputed, but let's ...
Sp3000's user avatar
  • 61.5k
13 votes
2 answers

Byte count for imports (or other things) not needed for definition, but for execution

When we define a function that needs an import, we have to add it to the byte count. So far, so good. What about cases where the definition itself doesn't need the ...
nimi's user avatar
  • 35.7k
15 votes
1 answer

What are our rules about additional code accompanying function submissions?

This is an extension of this meta question. I've always assumed that function submissions were allowed under the premise that the code would be evaluated once and would in the process either: Define ...
Martin Ender's user avatar
10 votes
1 answer

On scoring imported functions

There are lots of questions about whether to count the bytes in an import statement, etc. This question is not about that. Instead, this question is more inline with this question but I think it would ...
Ogaday's user avatar
  • 469
1 vote
0 answers

Is the interpreter part of the language or a separate language?

As I understand it, for our purposes a language is more or less defined by its implementation. That's one of the reasons why a program like Vim can also be "language". You just count keystrokes ...
MarLinn's user avatar
  • 241