Created
January 30, 2013 07:31
-
-
Save jayzeng/4671443 to your computer and use it in GitHub Desktop.
language design
This file contains hidden or 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
// clean language contract | |
[1..10].each(|i| puts i); | |
// | |
i = 0; | |
while true do: | |
i = i + 1 | |
if i > 10: | |
break | |
end | |
puts i | |
end | |
all data structures groups by [] | |
['a', 'b', 'c'] | |
[1..10] | |
['a'..'z'] | |
[obj1, obj2].each(obj[idx].metjod); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment