~jameinel/+junk/godirstate

Viewing all changes in revision 24.

  • Committer: John Arbash Meinel
  • Date: 2011-05-27 14:32:51 UTC
  • Revision ID: john@arbash-meinel.com-20110527143251-tlqirkem2mnfrbhz
Remove the error returns in favor of panic().

The immediate feeling, less clear state because we no longer add extra
state info to the error message. Probably a worthy trade for getting
a real traceback that has *even more* error info. (At the expense that
Parse() suppresses getting a traceback.)
Much clearer code without all the 'err' checking statements.

Possibly marginally faster (183ms). Probably fewer if checks
in trade for panic which probably has to be runtime checked
anyway.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: