sorawee
2019-2-9 08:20:48

Is there a boolean kwarg library? Pretty much overriding #%app to expand (f a #:b c #:d #:e) to (f a #:b c #:d #t #:e #t).


notjack
2019-2-9 08:44:34

HTTP/2 is such a massive perf improvement over 1.1 that I think it’s definitely needed. Especially since HTTP/3 won’t be more ubiquitous than 2 for at least a decade.


notjack
2019-2-9 08:45:27

Using 2 makes “request batching” patterns in web APIs basically obsolete


james
2019-2-9 11:14:04

@james has joined the channel


laurent.orseau
2019-2-9 11:37:32

another (simpler?) option is to define a new define/kw-compact (say) form that does the translation for all new functions defined this way


laurent.orseau
2019-2-9 11:39:54

basically you first define the wrapper as a procedure using apply and then you define the form to wrap all this in a define form


gfb
2019-2-9 19:27:40

@laurent.orseau But that still wouldn’t allow clients of the function to call it the way @sorawee shows, or am I missing something? Are you instead thinking about easing the definition of functions with keyword arguments that default to #false?


laurent.orseau
2019-2-9 19:42:45

you can use syntax-parser to do pretty much what you want with arguments


laurent.orseau
2019-2-9 19:43:13

so the defined f would be a form rather than a function/procedure, that’s the drawback (you can’t use apply as easily)


sorawee
2019-2-9 21:40:58

Right. In fact I did exactly what @laurent.orseau suggests before. The problem is that f is now a macro, so it couldn’t be used as a higher order function (like (apply f ...) or (map f ...)), though I think there’s actually a way to make it work?


sorawee
2019-2-9 21:42:46

But it also depends on whether we want this to work with functions that we don’t define ourselves (which would require a change to #%app)


diego
2019-2-9 22:24:53

For getting started, I would also recommend some of the languages from @mbutterick’s https://beautifulracket.com


krismicinski
2019-2-9 22:31:14

So they’ve read that. They’re looking for something a little bigger than that


krismicinski
2019-2-9 22:31:38

There don’t seem to be as many examples between “small” langs and “huge” langs, but the plai typed one looks ideal for this, combined with the article