The documentation for 'send*' shows an indentation style that is not available, 
but that I've often wanted for some "Lambda-like Keywords", e.g. 'lambda' and 
'match':

(send* edit (begin-edit-sequence)
            (insert "Hello")
            (insert #\newline)
            (end-edit-sequence))

https://docs.racket-lang.org/reference/ivaraccess.html#%28form._%28%28lib._racket%2Fprivate%2Fclass-internal..rkt%29._send*%29%29

"Reindent All" produces:

(send* edit (begin-edit-sequence)
  (insert "Hello")
  (insert #\newline)
  (end-edit-sequence))

I know there is some push against rightward drift, so perhaps the preferred 
style is:

(send* edit
  (begin-edit-sequence)
  (insert "Hello")
  (insert #\newline)
  (end-edit-sequence))

But I often find downward drift more of an impediment to understanding code. Is 
there a particular rationale for not having a style supporting the one shown 
first above? Also, are there other users who would like such a style as well?

Gary

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to