masak / alma

ALgoloid with MAcros -- a language with Algol-family syntax where macros take center stage
Artistic License 2.0
139 stars 15 forks source link

Add an 'is' operator (a la Python), and support object identity #526

Open masak opened 5 years ago

masak commented 5 years ago

We should basically mirror Python in all respects here, except that we won't have an is not operator with whitespace in it.

I'd also be fine with an id() built-in, for getting an object's "identity", probably a number akin to a memory address. is would basically be comparing such identities.