From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2P7II2a9HmaSXAAAqHPOHw:P1 (envelope-from ) for ; Tue, 16 Apr 2024 20:03:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 2P7II2a9HmaSXAAAqHPOHw (envelope-from ) for ; Tue, 16 Apr 2024 20:03:18 +0200 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=HQRx+Tf3; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b="QEv2qm/T"; dmarc=pass (policy=quarantine) header.from=johnnyrichard.com; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht ARC-Seal: i=1; s=key1; d=johnnyrichard.com; t=1713290598; a=rsa-sha256; cv=none; b=Mt5KR002Nd1K8/RgXJHUhZQ01H9BYxH/fMro+pwi0UQG5TbmA8IsBVwQDVxbol7pfiRwnI My2dsMUzspAVDo+07CjtXxivIBHfVKmeIT86/LkNQRBr+q81lXN/hAtlODsOAsBNyjyJ8F f0vvK2KiULDWqDoYsuZcmbqMAfFFX+wYufZ0EQd3FDywuXzYysro+zS/sELlgoAMtxXAAG 9NkKI+LuPLRhcJOV48LvE99jIUFdBKFfIScJvIsIdV29eGSyk/yNgO2qLVIKddnZNpI0d/ bYSDNDPdJt84ffzv0jrdg0W7y2VTP8E3UTsVILlESvU9ODZ5cZmbxNQsWYUz1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b=HQRx+Tf3; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b="QEv2qm/T"; dmarc=pass (policy=quarantine) header.from=johnnyrichard.com; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1713290598; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=rsvPmTutAN94n22qghrtzllquteuQt8I+YtgTca8C9c=; b=AexH2Z3ZfzBIztRLuu/X6vOq6z4kntaaaTrb1hXTuzv7XGfI45r8MZuOkFTXo4xDI4liIt XYjp6Qx/oD0hH1+1qbSnBM8gWhmmWItuve1ZWxlD1AI6tTDRK7bqTDfv2l735YFg17J6+G YC/z7MbB9pvHddEPUJb06gd/s8zZhCpRNqxf278VvzJCpzsipbMvBydYdiOzPBkzPFkFM9 4+gQMNo67TF5anP65VBYjKBl86lSsgRU/N0/kuwHHlTKPNcWyWzFN4EXFj+LkP1G3MG0+u jwF3QSsMb2VtcDE3IIc4gdhyJrSRerC71VW74CNluX3U8yeY6I/xW9qWP/xDsQ== Received: from mail-a.sr.ht (mail-a.sr.ht [46.23.81.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F3E476C608 for ; Tue, 16 Apr 2024 20:03:14 +0200 (CEST) DKIM-Signature: a=rsa-sha256; bh=WZ8kY5wM3o9OTGbNoQpvN1pXTzcf39oWjaG1NeWGPlM=; c=simple/simple; d=lists.sr.ht; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-ID; q=dns/txt; s=20240113; t=1713290594; v=1; b=HQRx+Tf3pV98NkeS4wonhe28zWWn1YsKnQhnkKBiWU7w3+Vhdu86FP1JQF2XvSXH2pgPJ5r0 4Vpn99Vxr5svvIf8qpfAh1km6t13d2CGqAMW0ca9h8HcTkDKG/Ry0VIRgSQlqIHBsb6OtY8eCTv 4bXS+PJblg38Zhc5gMi3kGrtzbnqcje6HSSsg0ktLp6WhsNrk5HAMlRVM91ul2wm3qeXPJQj2ez 86KKSZGTuVxq2N2a1+Kg6wHYLVab+I5miCJb52ct+OcY+arRuEy4+72P8KPLmg4Jq9q+hqg1ljS zF1f6VRA97TByOQ+9mazWLBrGxpsCIQ8JGfQAUDvC3Nsg== Received: from lists.sr.ht (unknown [IPv6:2a03:6000:1813:1337::154]) by mail-a.sr.ht (Postfix) with ESMTPSA id 3BF5F2016B for ; Tue, 16 Apr 2024 18:03:14 +0000 (UTC) Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [IPv6:2001:41d0:203:375::ad]) by mail-a.sr.ht (Postfix) with ESMTPS id 95CEE20161 for <~johnnyrichard/olang-devel@lists.sr.ht>; Tue, 16 Apr 2024 18:03:13 +0000 (UTC) Date: Tue, 16 Apr 2024 21:01:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1713290592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rsvPmTutAN94n22qghrtzllquteuQt8I+YtgTca8C9c=; b=QEv2qm/TdAQRAP5YjcC0K7tUy/SoR6osvZU/JTN36Oro5UJWG2XMwRCtJ0sVBBeuPUSZ+0 UR7L4gzS/bu6tQxltv43Obh7lR3w9UEciSDNgNsMpxlY2xx4R0Yxiv1nzla7swm8CBqAms iVhaEqqxG1HZGXOUrMjP3I6HXVWNB0lkORil7T5+79dqIf7CalCQRF3NgoLIZyslKsKN25 xmZvF5l2bdtTizSwEvWpQwCH0SoLT5QrmGFrMikSSwpNBd7ipc1ktV0xSGKdS3MoNLeBep JCOWIzjgd/dx+cS4JQExyENCh4BOJ01gM/g6PQwx9THg0+JotQZ+lbd49bblrA== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Johnny Richard To: ricardo_kagawa@disroot.org Cc: carlos@maniero.me, ~johnnyrichard/olang-devel@lists.sr.ht Subject: Re: [PATCH] fixup! docs: spec: add variables and constants specification Message-ID: References: <20240411224539.42752-1-ricardo_kagawa@disroot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Unsubscribe: List-Subscribe: List-Archive: Archived-At: List-Post: List-ID: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel.lists.sr.ht> Sender: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel@lists.sr.ht> X-Migadu-Flow: FLOW_IN X-Migadu-Country: NL X-Spam-Score: -8.46 X-Migadu-Queue-Id: F3E476C608 X-Migadu-Spam-Score: -8.46 X-Migadu-Scanner: mx10.migadu.com X-TUID: 0HjA5YGxlLmS On Sat, Apr 13, 2024 at 12:36:55AM +0200, Johnny Richard wrote: > > > This patch lacks support to the following valid assignment expression > > > (which I think adds flexibility to the language): > > > > > > var x: u32 = a = b = c = 1 > > > > Personally, I don't like this idiom, but I wouldn't stop you from adding > > it. Johnny's patch actually already enables this, and also the > > following (for clarity, of course the `if` statement does not exist yet, > > but it is included here as an example of what might come in the future): > > > > ``` > > var x > > if (x = next()) { > > return x > > } > > ``` > > > > Which is something I don't like either, just as much. > > Carlos and I discussed it and we also agreed on removing this assignment. > The patch v2 has removed it. Made a mistake here. The current spec still have assignment expressions. For context, we agreed on keep it because the only place we would miss this feature would be on *if* and *while* statements. But we also don't have strong option on keep it. Since it will be little bit annoying of optimizing the binary. In conclusion, I believe everyone is Okay on removing it. PS. Carlos prefers being called Maniero haha :^)