2 ms·
I do like that select statement which hits the first case that has its channel ready with a message. That's very nice. And having channels in your standard libr
by mathw 7y ago
I do like that select statement which hits the first case that has its channel ready with a message. That's very nice. And having channels in your standard library is brilliant and everyone should do it.
A shame about the shared memory thing though. I firmly believe that designing a language where memory is shared by default is a Bad Idea. You should probably provide a way to allow it when you really need it (for performance, usually, in very very very carefully-designed code), but having memory sharing by default is a source of soooooo many bugs.
I know, because I've caused most of them.