From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Accept plists when serializing and parsing JSON Date: Tue, 29 May 2018 23:20:59 +0200 Message-ID: References: <87sh6awls5.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000032ff84056d5ed0ff" X-Trace: blaine.gmane.org 1527628752 17786 195.159.176.226 (29 May 2018 21:19:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 29 May 2018 21:19:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 29 23:19:08 2018 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 1fNm1L-0004Vb-JN for ged-emacs-devel@m.gmane.org; Tue, 29 May 2018 23:19:07 +0200 Original-Received: from localhost ([::1]:35121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNm3S-00072P-OC for ged-emacs-devel@m.gmane.org; Tue, 29 May 2018 17:21:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNm3M-00072G-Ib for emacs-devel@gnu.org; Tue, 29 May 2018 17:21:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNm3L-0001J2-Rb for emacs-devel@gnu.org; Tue, 29 May 2018 17:21:12 -0400 Original-Received: from mail-oi0-x244.google.com ([2607:f8b0:4003:c06::244]:44267) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNm3L-0001Il-NX for emacs-devel@gnu.org; Tue, 29 May 2018 17:21:11 -0400 Original-Received: by mail-oi0-x244.google.com with SMTP id c128-v6so5171351oig.11 for ; Tue, 29 May 2018 14:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WEToxRHL2v4rc9KgFJ8/BB60D+OD+H/dofww1vRZCF8=; b=qZafwsg4bmaqBr2AA6Ep8hUQIaPgqRiklLPkVVe70VbACUk+Sa5s3vIcdlESMUz10y 6Iw9Ie/h6ooORrNiejeih/RQc5i2qkfDLi+PTLWLezLORdDBHR1/8tmuCf3+sK1asKBK u81Ru8FzhyhJ/7rjlCBGbBuP6VuLWhNvnN8YZcqCr7WI95p5kefsGAWyHewsJh68jsfM D1+kI+HlwI0CzPhf7TgI0KvxlyR8XhckyrYUncM89HzSvoDsvRTUxus/eoXlxx8lENsp 5VzYtrTLUeko7aeZyfCQqxLr/06Rw9tUwIFq/aV9ak97Pn5pLriulC80niCeZabgRHcR W/yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WEToxRHL2v4rc9KgFJ8/BB60D+OD+H/dofww1vRZCF8=; b=kbEb3u7NOJ+H59rbOECzn6Ec4KueYY4Yo7/wr9atwGF7RDBY1wsgSUmsRoSb37HvXi LH9b+tuTayWlzVS8zm2D97/IIaoSQqllbOxAcw9R43mem+wtM7OtAFHR6ybQq6uEsC8k m+zFYRHfbhK4G3ldT63Q6JKKnY5YcQ+mFRBLGDiZHpjj723tfO6uVDhkoiFvpD/hk/dH PUsbxcQuUjc1PQHQWLCOUj2e+kdqpPre9DIpHVr413N1LBTQkl5ec2L9vZHkZjYrICff ts0m7cNNqaWjHSKFOQNkImjQ0FGNm6YobBXRmJYRld0IbA901vro3Z7Wyb+t39WVR5Xh Y3OQ== X-Gm-Message-State: ALKqPwfWao/GhXPktTDsYTNbF17uhu9YOcSuF0WCgyUBLOoUyRKNQz8e hlbWwWSjO7QzPzdFJab0V/pIzbhPzG+wbOOEebs= X-Google-Smtp-Source: ADUXVKIl+A4i9J1yys35c13WOzk6AnijxWl8R2HYGeq3oTa1mPuRaxeDH552aT24jnv/MfpEE9pZzaC3p0cU713jdc4= X-Received: by 2002:aca:3f04:: with SMTP id m4-v6mr63114oia.198.1527628870908; Tue, 29 May 2018 14:21:10 -0700 (PDT) In-Reply-To: <87sh6awls5.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::244 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:225807 Archived-At: --00000000000032ff84056d5ed0ff Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Jo=C3=A3o T=C3=A1vora schrieb am Di., 29. Mai 2018 u= m 16:59 Uhr: > > I used a global to control json-serialize's interpretation of lists, but > it could be an argument as well. Please don't add global state to json.c. It's a low-level library that shouldn't rely on global state (and global state should generally be avoided in libraries). Not having global state was one of my explicit design goals for json.c --00000000000032ff84056d5ed0ff Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Jo=C3= =A3o T=C3=A1vora <joaotavora@gma= il.com> schrieb am Di., 29. Mai 2018 um 16:59=C2=A0Uhr:

I used a global to control json-serialize's interpretation of lists, bu= t
it could be an argument as well.

Please don= 't add global state to json.c. It's a low-level library that should= n't rely on global state (and global state should generally be avoided = in libraries). Not having global state was one of my explicit design goals = for json.c=C2=A0
--00000000000032ff84056d5ed0ff--