From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: New assoc-let package Date: Fri, 5 Dec 2014 20:27:17 +0000 Message-ID: References: <87mw72q5z2.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1133f92e2a730205097de744 X-Trace: ger.gmane.org 1417819430 20155 80.91.229.3 (5 Dec 2014 22:43:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2014 22:43:50 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 05 23:43:44 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xx1bD-0007Ea-6b for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2014 23:43:43 +0100 Original-Received: from localhost ([::1]:52741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xx1bC-000711-Po for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2014 17:43:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwzTE-00056b-HJ for emacs-devel@gnu.org; Fri, 05 Dec 2014 15:27:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwzTC-0006Dn-KF for emacs-devel@gnu.org; Fri, 05 Dec 2014 15:27:20 -0500 Original-Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:58716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwzTC-0006DS-CH for emacs-devel@gnu.org; Fri, 05 Dec 2014 15:27:18 -0500 Original-Received: by mail-la0-f48.google.com with SMTP id gf13so1324101lab.35 for ; Fri, 05 Dec 2014 12:27:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=cZxjoTxvl8VWcZ52IYhzQd2Q1KEgATXFo6rU+7xw1ZM=; b=hPqtoVN2U4s/CVm/WqwyfjpMIa2EDUIMK21gj6gxu5vUjIsqwbhiOZIWzvuLZObK7x 7lxTBOqqDP0/vG6I7qBNS/ZysdO+L1bq+V3HYblUMAUDTEbrEJgEBJluL0LtAplWafYd ZyUJBnge46cGD0wWnqUCFQ9G5fzQcV/ICE9iC1nT8qKseM44D8z+a8maycSj6uv5qvb9 2k8BBjdAgkhGdQi8hJ1P7KrDfkivRhHX6vVvFK1fsAFJ9SY1BizWnrIRzymwt35MWqfS PRPYndabG3Wt6I17YuVmyxMDEuuN/HYy+HeGk20IfKCpBtwo9V3YcueXz3ixY0ADiduV jgnQ== X-Received: by 10.112.184.70 with SMTP id es6mr4646742lbc.85.1417811237432; Fri, 05 Dec 2014 12:27:17 -0800 (PST) Original-Received: by 10.112.53.137 with HTTP; Fri, 5 Dec 2014 12:27:17 -0800 (PST) In-Reply-To: <87mw72q5z2.fsf@lifelogs.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::230 X-Mailman-Approved-At: Fri, 05 Dec 2014 17:43:19 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:179049 Archived-At: --001a1133f92e2a730205097de744 Content-Type: text/plain; charset=UTF-8 On 5 Dec 2014 00:45, "Ted Zlatanov" wrote: > >> Should it maybe use `lexical-let'? > > AM> Maybe. Do you foresee it behaving unexpectedly in a file with dynamic > AM> scope? > > If you want to support older Emacsen, it's probably better. But it's up > to you, and I don't know exactly what your code does. > >> I hope it can go into the core so it's available by default. > > AM> On the other hand, making it a package makes it a reliable dependency > AM> available since 24.1 > > To me, a package seems overkill for a single useful macro, but I haven't > seen the source so perhaps there's more to it. There was no URL in your > post and I don't see an assoc-let package in any of the ELPA repos I > know. Yes, when I sent that email I hadn't yet factored it out from the other project where it was born. I've attached the file now. There isn't much more to it, it's really quite simple. > Anyhow, it's your code, please publish it however you wish. Of course, but all feedback is welcome. I'll be pushing this once I've written a test or two for it. Cheers --001a1133f92e2a730205097de744 Content-Type: text/html; charset=UTF-8

On 5 Dec 2014 00:45, "Ted Zlatanov" <tzz@lifelogs.com> wrote:
> >> Should it maybe use `lexical-let'?
>
> AM> Maybe. Do you foresee it behaving unexpectedly in a file with dynamic
> AM> scope?
>
> If you want to support older Emacsen, it's probably better. But it's up
> to you, and I don't know exactly what your code does.

> >> I hope it can go into the core so it's available by default.
>
> AM> On the other hand, making it a package makes it a reliable dependency
> AM> available since 24.1
>
> To me, a package seems overkill for a single useful macro, but I haven't
> seen the source so perhaps there's more to it. There was no URL in your
> post and I don't see an assoc-let package in any of the ELPA repos I
> know.

Yes, when I sent that email I hadn't yet factored it out from the other project where it was born.

I've attached the file now. There isn't much more to it, it's really quite simple.


> Anyhow, it's your code, please publish it however you wish.

Of course, but all feedback is welcome.

I'll be pushing this once I've written a test or two for it.


Cheers

--001a1133f92e2a730205097de744--