Qi Xiao
|
1c0cffbfed
|
pkg/eval/vals/cmp.go: Use compareBuiltin for strings too.
|
2023-08-25 22:18:05 -04:00 |
|
Qi Xiao
|
4ceb91901e
|
pkg/eval/vals: Pretend structmaps are maps in typeOf too.
|
2023-08-22 21:56:02 -04:00 |
|
Qi Xiao
|
7c0c3eb82d
|
pkg/eval/vals: Correct the godoc of Cmp.
|
2023-05-20 10:20:48 +01:00 |
|
Qi Xiao
|
3f4bbff9c5
|
pkg/eval: Add option for total order to the order and compare commands.
The same code will be used to sort map keys when printing maps.
This addresses #1495.
|
2023-05-18 23:21:18 +01:00 |
|
Qi Xiao
|
25e27d6bb6
|
pkg/eval/vals: Make Cmp(a, b) return CmpEqual if Equal(a, b).
Also match the order of branches in Cmp and Equal.
|
2023-05-18 10:45:42 +01:00 |
|
Qi Xiao
|
1e249ed7fb
|
pkg/eval.cmp -> pkg/eval/vals.Cmp.
|
2023-05-18 10:31:31 +01:00 |
|