From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp52.i.mail.ru (smtp52.i.mail.ru [94.100.177.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 9DF56441841 for ; Thu, 26 Mar 2020 21:07:23 +0300 (MSK) Date: Thu, 26 Mar 2020 21:07:26 +0300 From: Alexander Turenko Message-ID: <20200326180726.sd5fgswki3gaehzw@tkn_work_nb> References: <1816245c768216733779be5c7420cc60725287ea.1585097339.git.korablev@tarantool.org> <20200326165049.GC21134@atlas> <20200326175915.GC5718@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200326175915.GC5718@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v2 05/10] box/error: don't set error created via box.error.new to diag List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikita Pettik Cc: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org > > I know there was a discussion about construct vs create vs new. > > It was not really discussion, I accidentally didn't notice that > box_error_construct() in fact allocated memory (meanwhile I thought > it didn't). I've already renamed it to box_error_new(). > > > Let me remind about approved name pairs: > > > > obj_create/obj_destroy - constructor/destructor, without > > allocation/deallocation. > > > > obj_new/obj_delete - constructor/destructor with > > allocation/deallocation > > > > init/free - library initialization/destruction > > > > _construct is not in the vocabulary. I'd avoid it. > > Ok, Vlad already guided me (but it would be nice to see this > manual in our dev docs). Should be there already: https://github.com/tarantool/doc/issues/1032