[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more url-utils?

From: Lennart Borgman
Subject: Re: more url-utils?
Date: Mon, 16 May 2011 23:21:37 +0200

2011/5/16 Ted Zlatanov <address@hidden>:
> On Mon, 16 May 2011 23:07:49 +0200 address@hidden wrote:
> j> Stefan Monnier <address@hidden> writes:
>>>>>> After looking at many examples in Emacs, I can't find or think of any
>>>>>> need for the headers *as text* in the code I've seen.  I would:
> SM> That sounds right.
>>>> ...so can I go ahead with my proposal or would you rather be
>>>> conservative and keep the old behavior, making API users turn off
>>>> headers explicitly?
>>> There are 3 parts.
>>> - removal of header text.
>>> - backward compatibility.
>>> - providing header info in a non-textual format.
>>> All three are important.
> j> Teds proposal addresses all three concerns right?
> j> - The new API does what coders expect, no information is lost
> j> - the old api is retained but marked obsolete
> j> - headers are accessible in alist format
> j> Its more work but Teds volunteered to do it. Great!
> I don't think marking the old API obsolete will preserve backwards
> compatibility.  But if Stefan thinks so, I'll do it according to my
> proposal.  Otherwise he'll have to decide what the API will be.
> I don't mind the extra work if it improves Emacs.  Right now using
> url-*.el to just get some data is pretty painful compared to Perl's LWP,
> for instance.

Yes, it is pretty painful and hardly documented. Take for example
url-http-parse-headers. Anyone can say what it does by just reading
the doc string?

Improvements will save a lot of time!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]