From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Should records be able to mimic primitive types? Date: Mon, 01 May 2017 08:03:25 -0400 Message-ID: References: <8777899d-ca8e-212c-b8bf-2f8da4c54836@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493640244 13538 195.159.176.226 (1 May 2017 12:04:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 May 2017 12:04:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 14:04:01 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 1d5A3c-0003RT-Lw for ged-emacs-devel@m.gmane.org; Mon, 01 May 2017 14:04:00 +0200 Original-Received: from localhost ([::1]:54069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5A3i-0005SC-IO for ged-emacs-devel@m.gmane.org; Mon, 01 May 2017 08:04:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5A3A-0005Ru-Gh for emacs-devel@gnu.org; Mon, 01 May 2017 08:03:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5A37-0007B7-GE for emacs-devel@gnu.org; Mon, 01 May 2017 08:03:32 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:19694) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d5A37-0007Ar-B3 for emacs-devel@gnu.org; Mon, 01 May 2017 08:03:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AfCwDpIgdZ/3Z8oWxdGgEBAQECAQEBAQgBAQEBg1WBFIN0hVqFf5EEAZdQHIYCBAIChDZEFAECAQEBAQEBAWsohRYGViMQCw4mEhQYDSSKMq4ZiwsBAQgCJotYikgBBJ1TlHuJAYZzhiyMPYFENiGBCi4gCC6HUCSJLAEBAQ X-IPAS-Result: A0AfCwDpIgdZ/3Z8oWxdGgEBAQECAQEBAQgBAQEBg1WBFIN0hVqFf5EEAZdQHIYCBAIChDZEFAECAQEBAQEBAWsohRYGViMQCw4mEhQYDSSKMq4ZiwsBAQgCJotYikgBBJ1TlHuJAYZzhiyMPYFENiGBCi4gCC6HUCSJLAEBAQ X-IronPort-AV: E=Sophos;i="5.37,400,1488862800"; d="scan'208";a="309752965" Original-Received: from 108-161-124-118.dsl.teksavvy.com (HELO ceviche.home) ([108.161.124.118]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 01 May 2017 08:03:25 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 915D7662E0; Mon, 1 May 2017 08:03:25 -0400 (EDT) In-Reply-To: (Philipp Stephani's message of "Mon, 01 May 2017 11:35:40 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:214481 Archived-At: >> - no benefit since this doesn't catch a common situation. > Catching uncommon situation is precisely the point of precondition > checking. I'm talking about "common" within erroneous situations. There is an endless supply of erroneous situations: we only bother to try and detect those that are serious (e.g. could cause a memory corruption) or frequent/common. I've never seen this kind of error in the wild, so I doubt it would *ever* prove useful to someone. Stefan