We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Don't

From Esolang
Jump to navigation Jump to search

Don't was a very powerful esolang by User:Cortex that had only three commands

Commands

Command What it did
H Print "Hello, World!"
? Teleport the user's device to a landfill in Dubai.
G[] Delete Don't from existence.

Unfortunately, someone ran the G[] command in one of their programs while testing an interpreter, causing the language to be removed from everybody except the creator's memory, and it was rendered impossible to implement.

Implementation

Despite of the rendering User:A insanely implemented Don't. This implementation requires two files and works only under Microsoft Windows:

/*do.c*/
#include <stdlib.h>
int main() {
    system("del dont.c");
    system("del do.c");
    system("del dont.exe");
    return 0;
}
/*dont.c
 *Inputs 1 command per line
 *No right served
 */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main() {
    char inp[30];
    while(1) {
        scanf("%s",&inp);
        /*In fact, an implementor could have
         *implemented burning up the user's 
         *computer and killing the user, but
         *it is way too risky to implement that.
         */
        if(strcmp(inp,"G[]")==0) {
            /*This theoretically deleted Don't
             *from existence via deleting every
             *Don't file and sources and leaving
             *do.exe alone(it certainly does not)
             *contain any "Don't" definitions.
             */
            system("start do.exe");
            return 0;
        } else if(inp[0]=='H') {
            printf("Hello, world!\n");
        } else if(inp[0]=='?') {
            /*Impossible, unless the device is a robot.*/
            printf("Your device is too heavy to be carried to Dubai\n");
        }
    }
    return 0;
}