std.range.equal or == in isPalindrome

bearophile bearophileHUGS at lycos.com
Tue Feb 18 02:47:32 PST 2014


Stanislav Blinov:

> Range interface should be minimal.

I agree. But I didn't mean to ask for that operator in the Range 
protocol. I think some ranges should define a ~ operator. It's 
easy to write a "chainable" trait. I did that for my nonstandard 
D1 library.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list