From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gemini Lasswell Newsgroups: gmane.emacs.devel Subject: Re: `thunk-let'? Date: Wed, 22 Nov 2017 09:44:01 -0800 Message-ID: <87fu96qkda.fsf@runbox.com> References: <87infp9z6j.fsf@web.de> <87zi90eehg.fsf@web.de> <87o9ocd6s4.fsf@web.de> <87wp2zcwm2.fsf@web.de> <87mv3vwb2c.fsf_-_@web.de> <87h8tnowl4.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511372700 14629 195.159.176.226 (22 Nov 2017 17:45:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2017 17:45:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Nicolas Petton , Eli Zaretskii , Stefan Monnier , Emacs Development To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 22 18:44:53 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHZ4q-00037y-6K for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2017 18:44:48 +0100 Original-Received: from localhost ([::1]:40672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHZ4x-0006Qm-In for ged-emacs-devel@m.gmane.org; Wed, 22 Nov 2017 12:44:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHZ4I-0006QV-JR for emacs-devel@gnu.org; Wed, 22 Nov 2017 12:44:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHZ4E-0001OC-Ia for emacs-devel@gnu.org; Wed, 22 Nov 2017 12:44:14 -0500 Original-Received: from aibo.runbox.com ([91.220.196.211]:34716) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eHZ4E-0001MY-7O; Wed, 22 Nov 2017 12:44:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From; bh=H71HhJ5rvak5ZOcREbVOA89c1uA7xWCSvqbu9T5Phac=; b=Q2zFqs/p2e3Oi5mOmmzR4v8rD6 z6aAGkdUoKyodL0OlGXEKF6csZP/1y3kvp8YX0eXuVCtGPuK8DxQS50nc6wauHVB2lMjcRdaVJSn6 Y30GE/3pdNNJEdd1aTKvK2PH77iivTLypPFTlvh+MqBqrgaaZQu2nyrKLbASgDRmV/bGjXwdj2J6a ptctGYxCFoZDD/tw07UWbR6cqmiTPoZm0zKL2f40AP+n3B+81uhMI3xgRVXne3iv1uvoJ6F/TzEGm mNaQ1DOd3cf8WPSAnLu526+jepyi6UP8ln3NQuUMMWG2jjahbgZ8LvcG4C2TOqL95MSLeJg9aaR1l jLIUFzYg==; Original-Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1eHZ48-0002je-KF; Wed, 22 Nov 2017 18:44:04 +0100 Original-Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=chinook) by mailfront10.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1eHZ48-0001QN-1H; Wed, 22 Nov 2017 18:44:04 +0100 In-Reply-To: <87h8tnowl4.fsf@web.de> (Michael Heerdegen's message of "Wed, 22 Nov 2017 03:50:47 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 91.220.196.211 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:220362 Archived-At: Michael Heerdegen writes: > + (should-error (byte-compile (thunk-let ((x 1 1)) x))) > + (should-error (byte-compile (thunk-let (27) x))) > + (should-error (byte-compile (thunk-let x x)))) Since the thunk-let forms aren't quoted, should-error is catching the evaluation error of the thunk-let form before byte-compile is called. And to my knowledge byte-compile doesn't signal errors, just issues warnings. It's also better to have the erroneous forms be quoted so that they don't cause errors when using Edebug or Testcover on thunk-tests.el.