Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 544 Bytes

instructions.md

File metadata and controls

10 lines (7 loc) · 544 Bytes

Errors

In this exercise, we will be implementing the programming logic in a package deepthought, which checks whether an input equals to the absolute answer to life, the universe and everything.

We have a constant answer which represents the answer to life, and a function AnswerToLife which checks the user input and returns a boolean and an error type.

A requirement is also to have a general error ErrCalculation that we can at the same time use in our AnswerToLife function, and export to be used in other programs of ours.