Skip to content

Instantly share code, notes, and snippets.

@thosakwe
Created November 12, 2016 02:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thosakwe/36cd83f97b892f8f05cb561c4589e0c0 to your computer and use it in GitHub Desktop.
Save thosakwe/36cd83f97b892f8f05cb561c4589e0c0 to your computer and use it in GitHub Desktop.
Programming in Esperanto?

Esperanto???

Programs should be written in the second-person.

# Declare a class named 'Besto'. All classes must end with -o.
Bestoj estas aferoj.
# Declare a number property, 'kruro'
Bestoj havas nombron da kruroj.
# Default value of 4
Multaj bestoj havas 4 krurojn.
# Extended class - Person, set legs to 2
Personoj estas bestoj, ankaux, kaj havas 2 krurojn.
# Declare a variable, Johano
Johano estas persono.
# Ask how many legs... Should print 4
Kiom krurojn havas Johano?
# i.e. "Johano havas 4 krurojn."
Diri "Saluton!".
@Marcelito444
Copy link

I dont read or understand esperanto, but as a person with lots of problems with ortography in general I would adhere to this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment