emacs-devel
[Top][All Lists]
Advanced

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

Re: Library defaults


From: Davis Herring
Subject: Re: Library defaults
Date: Tue, 24 Jan 2017 09:59:55 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

So it's really: Make the defaults developer-friendly or source code
friendly?  Because all calls from applications will end up looking like

(with-url ("http..." :cookies t
                     :cache t
                     :verbose 0)
   ...)

And that's kinda sad, too.

No, they should end up looking like

(with-url ("http..." :cookies client4--cookies
                     :cache client4--cache)
  ...)

because it is not only the _fact_ of using cookies and cache but also the contents of those data stores that should be client-specific. Cookies serve as a "persona" that should be under the control of the client/user, and the client/user may know when a cache is stale or unneeded and want to clear it themselves. (I imagine there is also a privacy concern if two personas are used but they share a cache that can be detected via logging the HEAD requests that do not produce a GET.)

In case it's not obvious, client4 would if appropriate offer a "don't-use-cookies/cache" customization that caused client4--cookies/cache to be nil.

Davis

PS - Yes, non-verbose should be the default, but that is indeed merely a stylistic concern.

--
This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.



reply via email to

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