21 Oct
2016
21 Oct
'16
10:36 p.m.
On 10/21/2016 5:43 PM, Rahman Salim Zengin wrote:
Hi,
The code in question is a simple chained comparison implementation. It works with any type If relational operators for that type is defined.
The syntax is baffling and needs to be explained in the doc. Why is it: 'cmp::chain < 5 <= inx < 15' as opposed to, let's say: 'cmp::chain > 5 <= inx < 15' ? In other words you are evidently using a class cmp::chain to do your magic but the operator you use for your chaining '<' seems arbitrary and a bit confusing.
https://github.com/rszengin/chain
May some people find it useful?