sending to a channel before opening it doesn't create an error

2024-02-28 Thread Clonk
Hi, If I am not mistaken the recommended channels to use for multithreading is Otherwise, as far as i know there is no compile time mechanism to determine if the channel has been opened.

sending to a channel before opening it doesn't create an error

2024-02-27 Thread enaaab460
Or is that impossible to check at compile time?

sending to a channel before opening it doesn't create an error

2024-02-27 Thread enaaab460
I have mistakenly, multiple times, sent items to a channel after initialising it but before opening it. The compiler never complained. After the program compiles and runs, it gets a SIGSEGV which I then discover my mistake. It would be very helpful it the compiler produced an error (like the typ