
spdegabrielle
2019-8-2 16:17:50
Hi

spdegabrielle
2019-8-2 16:18:26
I’ve just posted a DrRacket2 issue on the RFC’s github https://github.com/racket/racket2-rfcs/issues/96

sorawee
2019-8-3 02:39:29
I’m up for anything that will reduce indentation in Racket.
define*
(https://github.com/racket/racket2-rfcs/issues/46) could avoid introducinglet
.#:let
incond
could avoid nestedcond
(from Exercise 6 of https://school.racket-lang.org/2019/plan/mon-aft-lab.html):
(define (foo xs)
(cond
[(empty? xs) #f]
[#:let item (expensive-function (first xs))]
[(< item 0) (error 'invalid)]
[else (+ (sqrt item) item (sqr item))]))
- Tail Indentation that Hendrik Boom has brought up several times on the mailing list, along with @rokitna’s implementation of https://docs.racket-lang.org/parendown/
Is there any common element that we can use as a guiding principle for the new syntax to avoid excessive indentation?

notjack
2019-8-3 03:26:07
Swift’s guard clauses are something I find really really useful in reducing rightward drift