Imperative
![]() |
Look up imperative or imperatively in Wiktionary, the free dictionary. |
Imperative may refer to:
- Imperative mood, a grammatical mood (or mode) expressing commands, direct requests, and prohibitions
- Imperative programming, a programming paradigm in computer science
- Imperative logic
- Imperative (film), a 1982 German drama film
In philosophy
- Moral imperative, a philosophical concept relating to obligation
- Categorical imperative, central philosophical concept in the moral philosophy of Immanuel Kant
- Hypothetical imperative, introduced by Immanuel Kant as a commandment of reason that applies only conditionally
gollark: Run with `python3 [filename] [input code] [output executable]`.
gollark: It's Turing-complete, and demonstrates the principle of compiled languages maybe being slow.
gollark: ```pythonimport sysimport subprocesstemplate = """int main() { long long i = 0; while (i < 10000000000) { i++; } @CODE@}"""input = sys.argv[1]output = sys.argv[2]temp = "ignore-this-please"with open(input, "r") as f: contents = f.read() code = template.replace("@CODE@", contents) with open(temp, "w") as out: out.write(code)subprocess.run(["gcc", "-x", "c", "-o", output, temp])```
gollark: I finished my super-slow compiler!
gollark: Though GHC probably does optimize quite well, by now.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.