bitkeeper-scm / little-lang

The Little Programming Language
http://www.little-lang.org
215 stars 18 forks source link

== for equality #3

Open HalosGhost opened 8 years ago

HalosGhost commented 8 years ago

So, unlike C, L allows the use of == for testing strings for equality (perhaps because strings are a scalar type in L).

However, if strings can be tested for equality using ==, is there a reason why == cannot also be made to function for structs, hashes and arrays?

It would be nice if all of these could be usable through the same equality operator rather than needing eq() for the other aggregate types.