r/programminghorror • u/Beach-Devil • Apr 29 '21
Removed - Not Horror Oh god…
[removed] — view removed post
158
Upvotes
16
u/elzaidir Apr 29 '21
You can throw non-exception? As a C/C++ programmer, javascript will never stop to amaze me
19
2
u/TerrorBite Apr 29 '21
You used to be able to raise (throw) any object in Python, but they changed it at some point so you can only raise instances of classes derived from
BaseException.
3
22
u/[deleted] Apr 29 '21
Isn't that on purpose?