notjack
2017-11-3 21:05:27

@royall please add email validations and the like to the expect package (or a separate package using expectations), I’ve been wanting to do that :p


royall
2017-11-3 21:05:53

ok, but first I have to find out what an expectation is


notjack
2017-11-3 21:08:17

like a contract, but only for flat data and it gives you multiple error messages instead of just one


notjack
2017-11-3 21:09:22
> (define positive-even (expect-all (expect-pred positive?) (expect-pred even?)))
> (expect! -7 positive-even)
multiple failures
  subject: -7
  fault: expected a different kind of value
   expected: positive?
   actual: -7
  fault: expected a different kind of value
   expected: even?
   actual: -7

royall
2017-11-3 21:10:03

We can catch these faults like exceptions for recovery and presentation to the user?


royall
2017-11-3 21:10:18

my racket error handling knowhow is minimal


notjack
2017-11-3 21:10:48

Instead of expect! which throws an exception, you can use expectation-apply which just returns a list of faults


notjack
2017-11-3 21:11:04

so you don’t have to call expect! and catch stuff


royall
2017-11-3 21:11:20

sounds good to me


notjack
2017-11-3 21:11:53

(the expect package is one I made earlier this year and talked about at racketcon btw)


royall
2017-11-3 21:13:22

I wonder if anyone plans to chop those videos into something more manageable like the earlier racketcon vids


notjack
2017-11-3 21:13:43

it’s in progress as far as I know


royall
2017-11-3 21:13:53

that’s great


royall
2017-11-3 21:14:23

the older racketcon vids are way more informative than other programming conference vids i’ve watched


royall
2017-11-3 21:14:42

that could be skewed by my php background


notjack
2017-11-3 21:14:46

@leif did the chopping and editing last year, she’d know more about the progress this year


notjack
2017-11-3 21:15:03

(hence the video language :p)


royall
2017-11-3 21:15:26

racket users need to become more aggressive at self promotion


royall
2017-11-3 21:15:40

if i can see a dozen tweets about another css framework, i want to see it for all this cool stuff


notjack
2017-11-3 21:16:37

web stuff that’s more integrated with the non-racket world would be a good way of doing that