Elsa icon indicating copy to clipboard operation
Elsa copied to clipboard

Add check for merging let forms

Open Fuco1 opened this issue 7 years ago • 0 comments

If we have nested let forms which can be merged, do so

(let ((a 1))
  (let ((b 2))
    (body)
    (here)))

;; =>

(let ((a 1)
      (b 2))
  (body)
  (here))

We need a little bit more attention with dependencies

(let ((a 1))
  (let ((b a))
    (body)
    (here)))

;; =>

(let* ((a 1)
       (b a))
  (body)
  (here))

Fuco1 avatar Aug 16 '18 17:08 Fuco1