I highly recommend using a helper function like `shouldNeverHappen` instead of throwing errors directly in your code (only applies to defects/panics). It's an easy way to make your code more readable and improve DX by automatically opening the debugger during dev.
35 likes 6 replies
?