Thanks! A construct like "pri select" or "alt select" or "ordered select", 
so it's not a "wrt", it's a *tagging* of select changing ets sematics from 
being nondeterminstic to deterministic. 

CSP has both: external choice (nondeterminsitic), internal choice 
(deterministic).

The occam programming language has both "ALT" (=select) and "PRI ALT".

The xC programming language has both "select" and "[[ordered]] select".

This is not solved with a default clause, which transforms the selective 
choice waiting for some event to happen into busy polling. It's nice yo 
have some times, but that is something orthogonal to pri/ordered.

torsdag 29. april 2021 kl. 11:15:14 UTC+2 skrev Jan Mercl:

> On Thu, Apr 29, 2021 at 10:52 AM Øyvind Teig <oyvin...@teigfam.net> wrote:
>
> > I know from some years ago that go did not have any priority or ordered 
> select construct [1].
>
> Not sure what does "ordered" wrt select mean, but the default clause
> of the select statement provides exactly that - a priority mechanism:
> first try something, otherwise do something else. The most elementary
> one, sure, but all the more complex ones can be built with this basic
> building block.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/816dc201-9bc8-4d31-ac04-01fa3e73cf3cn%40googlegroups.com.

Reply via email to