5CYTH3 / karm_parser

A parser / maybe compiler that I am proud of
1 stars 2 forks source link

feature: Result Pattern #1

Closed 5CYTH3 closed 1 year ago

5CYTH3 commented 1 year ago

It could be very interesting to instead of panicking everytime the program encounters an error, have every functions return Result<T, E> and then if any error is encountered at any point, it is just forwarded to the parent function and then the very first function (parse()) treat this error.