[racket] syntax, differently

From: Todd O'Bryan (toddobryan at gmail.com)
Date: Sat Jul 31 21:43:28 EDT 2010

Given that I'm reading this with a variable-width font, what is the
style of indentation?

If it's two spaces after the first "if", can't you tell DrRacket to
indent "if" as if it were "define" and won't that fix it?

Todd

On Sat, Jul 31, 2010 at 9:39 PM, Eli Barzilay <eli at barzilay.org> wrote:
> On Jul 31, hendrik at topoi.pooq.com wrote:
>> On Sat, Jul 31, 2010 at 07:24:03PM -0400, Eli Barzilay wrote:
>> >
>> > Just to give an example, I use
>> >
>> >   (if E1
>> >     E2
>> >     E3)
>> >
>> > religiously (and I have detailed reasons to do so) -- even in DrRacket
>> > where I can't set it to follow this indentation, I fix it manually.
>> > An editor that does anything in response to that (reindents, colors it
>> > in red, makes a sound) would be useless to me.
>>
>> Yes, if you do that religiously, you don't need anything else.
>> But if you ever make a mistake and the editor points it out, it might
>> help you remain true to your faith.
>
> (The point there is that drracket can't do that kind of indentation,
> so it will interfere instead of help.)
>
> --
>          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
>                    http://barzilay.org/                   Maze is Life!
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>


Posted on the users mailing list.