Phil Hagelberg <phil@hagelb.org> writes:
> Nice catch; thanks. Applied and pushed. Sorry for the delay.
Fantastic, thanks!
Any comment on this:
> I did not check nor fix 'faith.error', as I> never use it. Also, do we still need it, now> that we have 'faith.error-match'? One can> explicitly match against ".*" if they need> to. That said, either way, this patch is> orthogonal to fixing or removal of the> 'error' function.
Rudy
--
"Simplicity is complexity resolved."
-- Constantin Brâncuși, 1876-1957
Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia
>> I did not check nor fix 'faith.error', as I>> never use it. Also, do we still need it, now>> that we have 'faith.error-match'? One can>> explicitly match against ".*" if they need>> to. That said, either way, this patch is>> orthogonal to fixing or removal of the>> 'error' function.
Oh, I missed this earlier. I think you're right that it can be removed;
we are still in the 0.1.x stage of the project, and on top of that it's
almost always a mistake not to check the contents of the error.
I'll go ahead and push this removal.
-Phil
Phil Hagelberg <phil@hagelb.org> writes:
> I'll go ahead and push this removal.
Fantastic, thank you!
Should we also rename 'error-match' to
'error', now that there is only one way to
assert on errors?
When I compare
(faith.error-match
".*: index out of bounds"
#(atrium.section 1 -1))
with
(faith.error
".*: index out of bounds"
#(atrium.section 1 -1))
I see think the latter is sufficiently, if
not perfectly, clear.
WDYT?
Rudy
--
"Genius is 1% inspiration and 99% perspiration."
-- Thomas Alva Edison, 1932
Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia
Rudolf Adamkovič <salutis@me.com> writes:
> Should we also rename 'error-match' to> 'error', now that there is only one way to> assert on errors?
Oh, yeah good idea. Better to get these breaking changes out earlier.
-Phil