Expression a == b is the same as a.equals(b) in Java. Expression a === b is the same as a == b in Java. Expression a ~= b calls the multimethod match~boolean(a, b).
The following need to work:
val a = 'word
val b = 'wo
val c = 'rd
val d = b + c
a == d # true
a === d # false
a === d.intern # true
a ~= 'word # true
a ~= String # true
a ~= /\w+/ # true
Expression a == b is the same as a.equals(b) in Java. Expression a === b is the same as a == b in Java. Expression a ~= b calls the multimethod match~boolean(a, b).
The following need to work: