From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: list3i etc. Date: Thu, 07 Mar 2013 11:23:12 +0200 Message-ID: <834ngn1s3j.fsf@gnu.org> References: <83boav20hi.fsf@gnu.org> <837glj1ymz.fsf@gnu.org> <513856A1.1050408@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1362648198 9954 80.91.229.3 (7 Mar 2013 09:23:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Mar 2013 09:23:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 07 10:23:42 2013 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 1UDX37-00087E-0l for ged-emacs-devel@m.gmane.org; Thu, 07 Mar 2013 10:23:41 +0100 Original-Received: from localhost ([::1]:58641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDX2l-0004cS-9N for ged-emacs-devel@m.gmane.org; Thu, 07 Mar 2013 04:23:19 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDX2h-0004Zu-I8 for emacs-devel@gnu.org; Thu, 07 Mar 2013 04:23:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDX2g-0007um-AP for emacs-devel@gnu.org; Thu, 07 Mar 2013 04:23:15 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:45442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDX2g-0007uI-2K for emacs-devel@gnu.org; Thu, 07 Mar 2013 04:23:14 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MJA00I00A0JAW00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Thu, 07 Mar 2013 11:23:12 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MJA00HZ9A2NCGI0@a-mtaout22.012.net.il>; Thu, 07 Mar 2013 11:23:12 +0200 (IST) In-reply-to: <513856A1.1050408@yandex.ru> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:157552 Archived-At: > Date: Thu, 07 Mar 2013 12:58:09 +0400 > From: Dmitry Antipov > CC: emacs-devel@gnu.org > > On 03/07/2013 11:01 AM, Eli Zaretskii wrote: > > >> Can we have a more mnemonically significant names for these, please? > >> Like list_of_numbers2, list_of_numbers3, etc., for example? > > Of course we can. But IMHO they're "mnemonically significant" already, Obviously, I disagree. The names list2, list3 etc. _are_ good for mnemonics, because all they do is construct lists of N members. But what is the 'i' part is completely obfuscated, IMO. If the length of the name is a factor, then I can suggest list_ints2, list_ints3 etc. > and the similar approach is widely used here and there. For example, > OpenGL API uses glFoo[sifd] to denote versions of glFoo with short/int/ > float/double arguments. That others sin similarly shouldn't stop us from doing TRT ;-) > > Also, why are they implemented as inline functions? They call list, > > list3, etc. which aren't inlined. > > Hm... I guess that we don't want function call overhead for such a simple > things Why not? Are these used in any context where speed matters?