Casbah has a similar concept called Bareword Operators. Korma uses operators a bit differently, but idea is quite same, too. One of the obvious advantages is that you can make sure you didn't screw make a typo in operator name during compile-time. Plus, we can guarantee that there is a subset of used / supported operators, and add them gradually, keeping track of them in one place, which will simplify tests, too. |
||
|---|---|---|
| .. | ||
| monger/test | ||
| resources/mongo/js | ||