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 (foo xs)
  (cond
    [(empty? xs) #f]
    [#:let item (expensive-function (first xs))]
    [(< item 0) (error 'invalid)]
    [else (+ (sqrt item) item (sqr item))]))

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