Programs should be written in the second-person.
Created
November 12, 2016 02:17
-
-
Save thosakwe/36cd83f97b892f8f05cb561c4589e0c0 to your computer and use it in GitHub Desktop.
Programming in Esperanto?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Diri "Saluton!". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I dont read or understand esperanto, but as a person with lots of problems with ortography in general I would adhere to this project.