Open HalosGhost opened 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.
eq()
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.