DreamBerd
DreamBerd copied to clipboard
Quadruple Precision Comparison Operator is Too Intuitive
From the spec:
print(3.14 ==== 3.14)! //true
This should be false
since those are two independent literals.
However the following makes sense because the programmer probably really wants it to be true
print(3.14 ==== 3.14)!!! //true
So... are you saying the compiler/interpreter should respect comments?
So... are you saying the compiler/interpreter should respect comments?
no, it means it should return a different result depending on the number of ! characters
@stohrendorf, no I wasn't saying that. But now I am. I've always wanted a program that has built in comment association.
This seems to be a different, stricter semantics than the quadruple equals operator. I think it would be more appropriate to add a pentuple equals operator for this, to avoid breaking backwards compatibility.