Better HN
topnewbestaskshowjobs
Log inSign up

skelterjohn

8 karma · joined Apr 13, 2012 (14y ago) · 2 submissions

Submissions

comment 14y ago · link · parent

You can't really use panics as exceptions. If you do your code will be strange and hard to work with. This strangeness is fine, because they aren't meant to be used like that.

A good rule of thumb is to use panics when it's a programmer error indicating a bug.

comment 14y ago · link · parent

But they aren't "preemptively scheduled concurrent execution sharing memory".

They are "cooperatively scheduled concurrent execution sharing memory".