Early std.crypto
Piotr Szturmaj
bncrbme at jadamspam.pl
Tue Oct 25 17:22:58 PDT 2011
Walter Bright wrote:
> On 10/25/2011 3:40 PM, Piotr Szturmaj wrote:
>> I share your opinion. I was thinking about such filter concept for
>> std.crypto.cipher (TBD), but I will also try to convert current hash
>> function
>> code to ranges.
>>
>> Thanks for pointing that out.
>
> Andrei and I have pretty much failed at articulating this vision for
> Phobos. We need to get our act together.
Personally, I learned ranges from Phobos docs/src and Andrei's article
about them. In the beginning I was surprised that I could not find any
"range howto", yet on this NG some range designs were considered
obvious. But I finally (somewhat) understood and used them in my
postgres client implementation. And I like them.
I wish there was some article about ranges and their uses. Some tips and
tricks thing for users and guidelines for range writers.
But let's get back to std.crypto. I planned to add input ranges to
function put, because it already forms an output range. I thought that
std.range.put() would serve the need if UFCS will be supported. But, as
I guess, the best method is to support input ranges directly.
More information about the Digitalmars-d
mailing list