Re: [racket-users] Re: auto-indentation... off by one^H^H^Hsome?

2020-03-20 Thread Benjamin Lerner
In my auto-indenter and style checker (not yet a package that’s widely available): evidently, there are some preferences that control which constructs get tabified differently than expected. So I tweak those preferences before invoking |tabify-all|. (In my case, I’m trying to support two plausi

Re: [racket-users] pinning in pict

2020-01-28 Thread Benjamin Lerner
Wouldn't `(panorama (pin-over base dx dy pict))` handle this? On 1/28/20 3:42 PM, Robby Findler wrote: You can cc-superimpose with a blank pict (perhaps that you get via ghost/launder). Does that help? Robby On Tue, Jan 28, 2020 at 2:39 PM Hendrik Boom > wrote:

Re: [racket-users] Unwelcome surprises using Scribble on a 90,000-word novel

2019-08-01 Thread Benjamin Lerner
On 8/1/19 7:25 AM, Hendrik Boom wrote: Well, my novel draft made it through Scribble, but not intact. (1) Some of the @ commands I use are intended to cause conditional inclusion of their contents, dependong on a command-line arameter (which haven't yet implemented in scribble. This is so I c

Re: [racket-users] SOLVED: Calling function with Scribble text as argument(s)

2019-07-31 Thread Benjamin Lerner
In cases like these, I’d just define a helper file |my-commands.rkt|, and |@(require "my-commands.rkt")| Those helper commands can use standard Racket syntax, since they’re likely to mostly be standard-looking Racket functions, and they can |(require scribble/whatever)| libraries if they need t

Re: [racket-users] Unit test inner procedures

2017-11-28 Thread Benjamin Lerner
(Pyret co-lead dev here.) The way nested tests work for us in Pyret is actually simpler than that: As a dummy example, consider a curried addition function |fun make-adder(num1 :: Number): fun result(num2 :: Number): num1 + num2 where: result(5) is num1 + 5 result(10) is num1 + 10 end result