Jacqueline Firth
Jacqueline Firth
Generalizing ranges is something we're interested in, but not focused on currently. There's some design questions to sort out, like whether ranges will be restricted to `Comparable` values or whether...
You'll also need to pass in the column number of the selection as the `#:indent` argument, so that `fmt` knows how much indentation to use when adding newlines
Note: this can change evaluation order and may not be safe when some of the argument expressions have side effects.
@sorawee Yes, but all the examples I've found so far are in other repositories such as Typed Racket and Scribble.
@mflatt Fixed. I also tweaked the docs and tests a bit, and I adjusted the implementation to make `(deprecated-alias-target (deprecated-alias id-stx))` preserve `eq?`-ness.
In the case of Resyntax? Definitely.
Actually I was able to make this work entirely by using the existing `#:indent` argument. To format a single `[start, end)` range I did the following: - Extract that range...
Found a tricky case that the `'disappeared-use` strategy can't solve: ```scheme (let-syntax ([add1 (syntax-rules () [(_ x) x])]) (for ([i (in-range 1 (add1 5))]) (displayln i))) ``` The `add1` is...
I've got a working implementation of this rule that relies on a patch to Racket to add a `'disappeared-visit` property.
See also #369.