Hacker News new | past | comments | ask | show | jobs | submit login

  "
  Cosmos uses go panics for error handling. Transaction runs 
  out of gas? panic. Try to spend more coins than you have? 
  panic. Invalid inputs? panic.

  ...

  For safety, later on the panic was removed entirely.
  "
Next time someone suggests using panic's as exceptions in golang... I'm going to point them at a nice $75k reason not to do that.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: