template icon indicating copy to clipboard operation
template copied to clipboard

Use of `error`

Open zudov opened this issue 6 years ago • 1 comments

Currently templatewill call anerrorif the template string is malformed, for error-handling there'stemplateSafethat returns anEither`.

I think it would be nicer if the library defined an error type (e.g. TemplateError) and template would throw that instead of an error.

zudov avatar Aug 06 '18 14:08 zudov

This could be nicely combined with my proposed solution to #13.

trskop avatar Aug 06 '18 19:08 trskop