Skip to content

Commit

Permalink
improve .. macro
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed May 18, 2019
1 parent 0136ff4 commit 48dd090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* return undefined from `load` function
* fix formatting of lambda expressions
* fix `symbol->string` function when called with gensym symbols
* better `-->` macro
* improve `-->` and `..` macros
* quote `define-macro` arguments so they don't evaluated if inside expression

## 0.15.0
Expand Down
4 changes: 1 addition & 3 deletions examples/helpers.lips
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
(let ((parts (split "." (symbol->string expr))))
(if (== 1 (length parts))
expr
`(. ,(string->symbol (car parts)) ,@(map (lambda (string)
(list 'quote (string->symbol string)))
(cdr parts)))))))
`(. ,(string->symbol (car parts)) ,@(cdr parts))))))

;; ---------------------------------------------------------------------------------------
(define (dir obj)
Expand Down

0 comments on commit 48dd090

Please sign in to comment.