Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9101B429E54 for ; Sun, 22 Jan 2012 17:03:14 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ksnNrq9rAuZ0 for ; Sun, 22 Jan 2012 17:03:14 -0800 (PST) Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU [18.7.68.37]) by olra.theworths.org (Postfix) with ESMTP id 0AAAA429E40 for ; Sun, 22 Jan 2012 17:03:13 -0800 (PST) X-AuditID: 12074425-b7f4a6d0000008e0-c9-4f1cb1d1d1ac Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP id 2E.91.02272.1D1BC1F4; Sun, 22 Jan 2012 20:03:13 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id q0N13CuR004365; Sun, 22 Jan 2012 20:03:12 -0500 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q0N139vn014523 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sun, 22 Jan 2012 20:03:11 -0500 (EST) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77) (envelope-from ) id 1Rp8J0-00024T-Tf; Sun, 22 Jan 2012 20:02:42 -0500 Date: Sun, 22 Jan 2012 20:02:42 -0500 From: Austin Clements To: Jani Nikula Subject: Re: [PATCH 1/3] mime node: Record depth-first part numbers Message-ID: <20120123010242.GA7600@mit.edu> References: <1326918507-28033-1-git-send-email-amdragon@mit.edu> <1326918507-28033-2-git-send-email-amdragon@mit.edu> <87zkdkbqc6.fsf@nikula.org> <20120119021254.GJ16740@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120119021254.GJ16740@mit.edu> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphleLIzCtJLcpLzFFi42IRYrdT0b24Ucbf4EUbt0Vr92cmi6bpzhbX b85kdmD2ONvdzupx6/5rdo9nq24xBzBHcdmkpOZklqUW6dslcGXc+zKHteAaZ8WL3p9sDYy3 2LsYOTkkBEwkupe+YYWwxSQu3FvP1sXIxSEksI9R4tyTjewQzgZGiV9rmqGck0wSp84uYYVw ljBKTG99ywzSzyKgKjH1VQOYzSagIbFt/3JGEFtEQFFi88n9QDYHB7OAkcSq73ogprCAs0Tf l0CQCl4BbYmr525Czd/BKDG17ToTREJQ4uTMJywgNrOAlsSNfy+ZIMZISyz/xwES5hTQlfh1 +RfYN6ICKhJTTm5jm8AoNAtJ9ywk3bMQuhcwMq9ilE3JrdLNTczMKU5N1i1OTszLSy3StdDL zSzRS00p3cQIDnQX1R2MEw4pHWIU4GBU4uGNWCrjL8SaWFZcmXuIUZKDSUmUN3ADUIgvKT+l MiOxOCO+qDQntfgQowQHs5IIr/NnaX8h3pTEyqrUonyYlDQHi5I4r6bWOz8hgfTEktTs1NSC 1CKYrAwHh5IErwswooUEi1LTUyvSMnNKENJMHJwgw3mAhtuB1PAWFyTmFmemQ+RPMSpKifPy gCQEQBIZpXlwvbBE9IpRHOgVYV5HkCoeYBKD634FNJgJaDBHnhTI4JJEhJRUA6Pkt/K48+xu 4tLOMyITCy0qquZNEvs5zftol+zMg9su6q4W/XPI+q8Q/8b1jZcVf4fNcTqQua48XygzSNA6 a2GeP/ubfdwfSh4lv+f3KzKyXOwjxaRX/nJyjvTP4wbqP7i23uITvHpezPJvzVvWjX18lvti G4L7fyUEvzvxYlmwv76RoMVhViWW4oxEQy3mouJEAASka7cfAwAA Cc: notmuch@notmuchmail.org, dkg@fifthhorseman.net X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2012 01:03:14 -0000 Quoth myself on Jan 18 at 9:12 pm: > Quoth Jani Nikula on Jan 19 at 12:25 am: > > FWIW, I'm not a big fan of casting away const. Either it is const, or it > > isn't. Not very many places would be affected if you dropped the const > > qualifier from the related interface(s) altogether, and things would > > look cleaner here. But I suppose this is a matter of taste. > > I'm not particularly happy with this either. Unfortunately, dropping > the const here affects a surprising number of places, including the > entire MIME node API. I've changed my mind and removed a few consts so that this funny cast isn't necessary. (It also turned out that when I tried this before, I'd given up just a smidgen before removing enough consts to make it work.) > I think that, at a deep level, depth-first numbering simply doesn't > resonate with an extremely hierarchical API like this and that > dissonance is going to have to focus somewhere. There have been > discussions of switching to hierarchical part numbering before (in > particular, because depth-first numbering is unstable with encrypted > parts) and I'll probably restart those after all of this is done. I have not, however, changed my mind about this.