Jacqueline Firth
Jacqueline Firth
The main package docs presents a table of contents that includes the guide and reference, but doesn't comment on the existence of the two documents. To make it clearer what...
Tentative name: "The Mock Handbook". General idea is that it's an unordered collection of "best practices" like "don't check arguments in mock behaviors" or "don't check mocks if their returned...
The guide is much better suited to defining tech terms, the reference should just refer to the guide sections for tech terms.
See the lens guide and reference for implementation and examples
Repeat a thunk `n` times and produce a list of results.
`with-handlers` is less useful in a point-free context. Combinators are desired for following cases: 1. Wrap function with predicate-handler pairs. Like `with-handlers`, but wrapping a function and producing a function,...
Point-free definition of predicate-function dispatchers. Using function `cond-proc`: ``` racket (define first-list/vector/string (cond-proc list? first vector? vector-first string? string-first)) > (first-list/vector/string '(a b c)) 'a > (first-list/vector/string #(a b c))...
See racket/racket#4074. Resyntax could suggest replacing `(read-line in)` with `(read-line in 'any)` and `(read-line)` with `(read-line (current-input-port) 'any)`. This technically changes behavior; a behavior-preserving transformation would be to use `'linefeed`...