Created
March 3, 2020 17:39
-
-
Save okram/f1eeedf224ed45f77ab489a85ad3c68c to your computer and use it in GitHub Desktop.
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
// Removed the => evaluate operator. | |
// BEFORE 1 => +2 | |
// NOW 1 + 2 | |
// Evaluation is determined by juxtaposition (reading left to right). | |
// value type (equiv value => type (execution)) | |
// type type (equiv type => type (compilation)) | |
mmlang> 1 | |
==>1 | |
mmlang> +2 | |
==>[plus,2] | |
mmlang> 1+2 | |
==>3 | |
mmlang> 1[plus,2] | |
==>3 | |
mmlang> 1,2,3[plus,2] | |
==>3 | |
==>4 | |
==>5 | |
mmlang> [1->2][plus,['a'->'b']] | |
==>[1->2,'a'->'b'] | |
mmlang> [1->2],[3->4],[5->6][plus,['a'->'b']] | |
==>[1->2,'a'->'b'] | |
==>[3->4,'a'->'b'] | |
==>[5->6,'a'->'b'] | |
mmlang> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment