
sorawee
2020-6-11 01:13:18
An alternative approach is to have a keyword argument named method
, then users can write #:method (data-method ...)
or #:method (form-method ...)
or #:method (json-method ...)
. It’s more extensible and mutually exclusive by construction.

sorawee
2020-6-11 01:13:52
(method
is just a random word that came to my mind. There might be a better word)

samth
2020-6-11 01:14:09
Method isn’t a great name here, since it means get/put/etc in this context

samth
2020-6-11 01:14:30
But also the current design is somewhat more convenient