Hello

From Esolang
Jump to: navigation, search

Hello programming language is a minimal programming language with only one instruction, 'h', which will print out the string "Hello World". Hello was created by Anne Veling.

The language was designed to be very easy to learn and implement.

Example program

The following program prints out "Hello World".

h

Important note

This language is a joke language.

Notes on quines

If it was case insensitive, and all unknown characters were ignored, then it would be easy to make a quine using this program. (Maybe even two quines. Or an infinite number.)

Hello World

It's possible to make such quines with Hello++, which was inspired by this example.

Interpreter

i = input("Enter Command: ") 
if i != 'h':
	print("ERROR!")
else:
	print("Hello World")

This interpreter of Hello was written by Zayne in Python3.5

But, that does not ignore un-h chars. A better (and shorter) version by User:A written in Python 3:

i=input(">") 
if i=='h':
	print("Hello World")

User:B has dramatically improved the memory and disk footprints of the interpreter written in Python 3:

if'h'==input(">"):print("Hello World")

and has ported it to Python 2 at the cost of increased mass storage usage:

if'h'==raw_input(">"):print"Hello World"

See also

External resources