RFC curl

Brad Anderson eco at gnuk.net
Thu Nov 10 08:52:32 PST 2011


On Thu, Nov 10, 2011 at 5:14 AM, Jonas Drewsen <jdrewsen at nospam.com> wrote:

> On 10/11/11 08.32, Jacob Carlborg wrote:
>
>> On 2011-11-09 21:53, Jonas Drewsen wrote:
>>
>>> Hi,
>>>
>>> So after the last review of the etc.curl there were some requests for
>>> making it simpler.
>>>
>> <snip>
>
>
>  BTW, why is this "etc.culr" and not "std.curl".
>>
>
> I think Andrei mentioned that he wanted it to go to std.curl. Another
> option would be std.net.curl.
>
> Anyone have an opinion about this?
>
> /Jonas
>

I think putting the high level API (which I really like the clean and
simple design of, by the way) under something like std.net and the low
level curl specific API in etc.curl might be nice.  I know what curl is but
looking for std.curl to download a file isn't obvious for anyone who isn't
aware of curl.  This also leaves the option of keeping the high level API
and swapping out the curl backend with something else if that was ever
needed or wanted.  That's not very likely to happen anytime soon but I
think a good guideline might be to keep the phobos API focused on what,
specifically, you want to do rather than what is doing what you want to do.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20111110/ef35229d/attachment.html>


More information about the Digitalmars-d mailing list