dhh1128 / intent

the intent formal language
https://intentlang.org
2 stars 1 forks source link

provide sophisticated error declaration/mgmt capabilities #62

Open dhh1128 opened 10 years ago

dhh1128 commented 10 years ago
  1. Make it possible to call the same func in error-checking mode (fast, but caller must exhibit due diligence) or in exception mode (more overhead, caller doesn't have to catch). This probably implies that the implementing code just needs to say something like "raise_or_return(error)", and know that control transfers out of the function one way or another. Impls probably have to declare that they support this.
  2. Make it easy to declare an error and have it be assigned a number and a localizable repr. Possibly have it work like Result did at Symantec, except that you can declare an error in place and compiler will build/groom master list for you?
  3. Should severity be an instance-specific thing (in context A, this is an error, but in B, it is a warning?)