Alex Knauth

Results 243 comments of Alex Knauth
trafficstars

So to normalize a color name, downcase it, and then check whether that version is equal to `"cadet blue"` or `"cornflower blue"`. If it is, then stop there. Otherwise, remove...

Thanks, I edited to specify that it matches the X11 cornflower blue from that page.

A similar thing happened with `"cadetblue"` and `"cadet blue"`, although with those the difference between them is much less, only `#(95 158 160)` vs. `#(96 160 160)`, still within 1%...

@samdphillips > Also things like `(check-true (lambda (x) x)` fail, which is bad. There should be some check that the head of the s-expression isn't a special identifier, something like:...

Why is check-error called `check-error`?

Would it be better if `check-error` were renamed to either `check-check-error` or `check-fail-error`?

(Re: `check-fail/error`) That makes sense to me.

It has to evaluate them in the context of `call-with-values`, so the function form can't have the same behavior.

But they still have to be almost "full-fledged" macros, in that they can't be function-like anymore. It won't be equivalent to say `(#%app check-equal? actual-expr expected-expr)` versus `(check-equal? actual-expr expected-expr)`...

And what if someone is testing functions that look at continuation-mark stuff? (Edit: I can't find a way to detect it other than looking at the error message, so far.)