News for hackers. Stuff that matters.
Re:Go 1.18 by dragonwriter on Wednesday March 16, 2022 @12:14AM (#30695247)
> Go could have provided message queues with priorities Erlang style

Erlang doesn't have priorities; you can fake them with selective receive, but IIRC selective receive is considered a code smell and something that should generally be avoided or minimized.

(You can also have a separate process act as a priority queue channel by, well, storing messages in an actual priority queue structure and sending from its head, and that's a little more robust.)

There are no comments on this comment yet.