From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3668 invoked by alias); 8 Mar 2014 19:29:38 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 3656 invoked by uid 89); 8 Mar 2014 19:29:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sat, 08 Mar 2014 19:29:35 +0000 Received: from [10.9.9.206] (helo=mailfront02.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1WMMw6-0005TG-OY for kawa@sourceware.org; Sat, 08 Mar 2014 20:29:30 +0100 Received: from 70-36-239-203.dsl.dynamic.sonic.net ([70.36.239.203] helo=localhost.localdomain) by mailfront02.runbox.com with esmtpsa (uid:757155 ) (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) id 1WMMw3-0003EW-Tb for kawa@sourceware.org; Sat, 08 Mar 2014 20:29:28 +0100 Message-ID: <531B6F95.30101@bothner.com> Date: Sat, 08 Mar 2014 19:29:00 -0000 From: Per Bothner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "kawa@sourceware.org" Subject: new output re-direction syntax Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-q1/txt/msg00110.txt.bz2 So far we have: &<{PATH} ;; read named file/resource (set! &<{PATH} VALUE) ;; set named file/resource I just checked in: (&>{PATH} VALUE) ;; set named file/resource &>{PATH} basically evaluates to: (lambda (newvalue) (set! &<{PATH} newvalue)) That seems more readable. I'm considering extending pipe-process to allow: (pipe-process EXP1 ... EXPN &>{PATH}) as a short-hand for: (&>{PATH} (pipe-process EXP1 ... EXPN)) It's not clear this shorthand worth it to save two parentheses. It's also not clear how general to be. We could allow arbitrary one-argument lambda in the final position - that actually looks to be the easiest implementation. I'm working on a JavaOne presentation focusing on named literals and the new shell/process features. -- --Per Bothner per@bothner.com http://per.bothner.com/