GNU68-2026-001-brief-selection
jpl
jpl.algol68@gmail.com
Thu Jan 29 18:15:36 GMT 2026
On Thu, Jan 29, 2026 at 11:36 AM Jose E. Marchesi <jemarch@gnu.org> wrote:
>
>
> Hello people!
>
> As we discussed, I just published this GNU extension for supporting a
> brief style of selection.
>
> It is already listed in https://algol68-lang.org and in a few minutes I
> will be pushing a patch adding support for it to GCC.
>
> Salud!
<snip>
> Using the brief form of selection, the example above now becomes:
>
> PUB OP + = (POS a,b) POS: (c'a + c'b, r'a + r'b),
> - = (POS a,b) POS: (c'a - c'b, r'a - r'b);
>
Hello All,
This is a great improvement and appreciated. As much as I love this,
I am still hoping that someday a postfix version becomes possible.
It's really helps with readability when we have struct fields that are
themselves structs. Compare:
Bar of Biz of Foo := 4
Bar'Biz'Foo := 4
vs.
Foo.Biz.Bar.x := 4
(Also, please be aware that I do not know if this is actually possible or not.)
/James
More information about the Algol68
mailing list