Re: scope Sergei Egorov (20 Oct 2025 17:08 UTC)
Re: scope / order Sergei Egorov (20 Oct 2025 17:34 UTC)
Re: scope / order Daphne Preston-Kendal (25 Oct 2025 10:55 UTC)
Re: scope / order Marc Nieper-Wißkirchen (25 Oct 2025 11:36 UTC)
Re: scope / order Sergei Egorov (25 Oct 2025 15:05 UTC)
Re: scope / order Arthur A. Gleckler (25 Oct 2025 18:30 UTC)
Re: scope / order Daphne Preston-Kendal (26 Oct 2025 21:56 UTC)
Re: scope / order Daphne Preston-Kendal (26 Oct 2025 22:22 UTC)
Re: scope / order Sergei Egorov (26 Oct 2025 23:49 UTC)
Re: scope / order Arthur A. Gleckler (27 Oct 2025 00:05 UTC)
Re: scope / order Sergei Egorov (27 Oct 2025 00:11 UTC)
Re: scope / order Marc Nieper-Wißkirchen (27 Oct 2025 09:22 UTC)
Re: scope / order Daphne Preston-Kendal (27 Oct 2025 09:42 UTC)
Re: scope / order Marc Nieper-Wißkirchen (27 Oct 2025 10:14 UTC)
Re: scope / order Sergei Egorov (27 Oct 2025 16:46 UTC)
Re: scope / order Daphne Preston-Kendal (26 Nov 2025 23:00 UTC)
Re: scope / order Sergei Egorov (27 Nov 2025 01:14 UTC)
Re: scope Daphne Preston-Kendal (20 Oct 2025 18:48 UTC)
Re: scope Sergei Egorov (20 Oct 2025 20:40 UTC)
Re: scope Wolfgang Corcoran-Mathe (20 Oct 2025 21:56 UTC)

Re: scope / order Daphne Preston-Kendal 25 Oct 2025 10:54 UTC

On 20 Oct 2025, at 19:34, Sergei Egorov <xxxxxx@acm.org> wrote:

> Not to give an impression that I am fighting the prevailing opinion:
>
> after thinking about this issue for some time, I started to like the idea of introducing a companion form, match*, that specifies explicitly both left-to-right matching order and left-to-right nested scope for the pattern variables, making them immediately available for reference downstream from the place of their introduction (I would not go as far as specifying what will happen if you set! them -- they may have shadow copies). This would allow the intent of pattern users to be clearly visible at a quick glance. In my opinion, this form will be used rarely, and only in very specific circumstances, as an alternative to having a guard clause. Perhaps for some sort of tracing too?

You will still need to prescribe somewhat more precisely what ‘left-to-right matching order and left-to-right nested scope’ means.

Daphne