Field condition operators

12 views
Skip to first unread message

Dmitry Dobrynin

unread,
Mar 16, 2011, 2:06:48 AM3/16/11
to mongo-scala-driver
Hi all

Alexander, why have you decided to use condition operators for fields
such as is_> etc? Why not to use ordinal operators (>/>=/</<= or gt/
gte/lt/lte etc)?

Thank you

Alexander Azarov

unread,
Mar 16, 2011, 6:02:03 AM3/16/11
to mongod...@googlegroups.com
Hello Dmitry,

It was so in the earlier versions (not on GitHub). Frankly speaking I cannot recall why I changed >/</etc to corresponding "is_*" versions.. there has to be a reason, but which one?..

Overloading common </>/etc operations gives operator precedence, so I think I need to play with this approach again.

Alexander

16.03.2011, в 9:06, Dmitry Dobrynin написал(а):

Dmitry Dobrynin

unread,
Mar 16, 2011, 6:37:13 AM3/16/11
to mongo-scala-driver
I absolutely agree with you about playing with this approach.

Alexander, is mongo-scala-driver used in production systems? I.e. how
many clients/users will be impacted in case of design changes?

Alexander Azarov

unread,
Mar 16, 2011, 6:48:22 AM3/16/11
to mongod...@googlegroups.com
Yes, it's in production. I do not know how many clients though, it's hard to estimate. The codebase is very well covered by the tests and my company uses almost every single feature of mongo-scala-driver, so.. there is no bugs and no feedback as a result.
Reply all
Reply to author
Forward
0 new messages