From: Lawrence D'Oliveiro <ldo@nz.invalid>
Subject: Re: Ichbiah 2022 compiler mode
Date: Fri, 6 Sep 2024 00:58:05 -0000 (UTC) [thread overview]
Message-ID: <vbdk2t$hj0r$6@dont-email.me> (raw)
In-Reply-To: vbdgs7$hedr$1@dont-email.me
On Thu, 5 Sep 2024 19:03:22 -0500, Randy Brukardt wrote:
> Keyword "variable" is needed to declare variables (we do not want the
> worst option to be the easiest to write, as it is in Ada).
One language idea I toyed with years ago was that
«name» : «type»;
declared a variable, while
«name» : «type» := «value»;
declared a constant. So, no initialization of variables at declaration
time allowed.
> (10) Variable-returning functions are introduced.
Is this like updater functions in POP-11, or “setf” in Lisp? So you have a
procedure
set_var(«var», «new value»)
which is declared to be attached to «var» in some way, such that when you
write
«var» := «new_value»
this automatically invokes set_var?
next prev parent reply other threads:[~2024-09-06 0:58 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-05 11:52 Ichbiah 2022 compiler mode Kevin Chadwick
2024-09-05 13:40 ` Jeffrey R.Carter
2024-09-05 13:49 ` Bill Findlay
2024-09-05 19:22 ` Jeffrey R.Carter
2024-09-05 14:05 ` Kevin Chadwick
2024-09-05 16:08 ` Kevin Chadwick
2024-09-05 19:24 ` Jeffrey R.Carter
2024-09-06 0:03 ` Randy Brukardt
2024-09-06 0:58 ` Lawrence D'Oliveiro [this message]
2024-09-12 4:39 ` Randy Brukardt
2024-09-12 22:24 ` Lawrence D'Oliveiro
2024-09-14 6:18 ` Randy Brukardt
2024-09-14 7:18 ` Lawrence D'Oliveiro
2024-09-06 21:22 ` Simon Wright
2024-09-07 17:13 ` Niklas Holsti
2024-09-07 20:34 ` Nioclás Pól Caileán de Ghloucester
2024-09-12 4:46 ` Randy Brukardt
2024-09-12 7:42 ` Niklas Holsti
2024-09-12 9:07 ` Dmitry A. Kazakov
2024-09-12 12:36 ` Kevin Chadwick
2024-09-12 15:43 ` Niklas Holsti
2024-09-13 20:45 ` Nioclás Pól Caileán de Ghloucester
2024-09-12 9:04 ` J-P. Rosen
2024-09-12 11:35 ` Niklas Holsti
2024-09-14 6:13 ` Randy Brukardt
2024-09-14 6:47 ` Dmitry A. Kazakov
2024-09-14 7:19 ` Lawrence D'Oliveiro
2024-09-14 8:12 ` Niklas Holsti
2024-09-06 11:07 ` Jeffrey R.Carter
2024-09-06 20:26 ` Nioclás Pól Caileán de Ghloucester
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox