compile time

The moment source code is checked and translated by a compiler, before the program runs, as opposed to run time.

In more detail

Mistakes caught at compile time, such as a wrong type or a missing name, are reported before the program ever runs. Some languages, such as TypeScript, check types only at compile time and remove them from the output. So anything that arrives while the program runs, such as a JSON response, is unchecked until runtime validation checks it.

Related terms

Taught in

References