Masataro Asai

Results 170 comments of Masataro Asai

Without explicit support, you will end up something like this. ``` lisp (defpattern list? (&rest args) (process-list? args)) (defun process-list? (args) (let* ((pos (position-if (lambda (x) (and (consp x) (eq...

I have the similar idea. It would be better if the matcher gives the somewhat similar interface to the constructor. - all options to make-array except :initial-contents - e.g.) type...

if it doesn't accept an execute-time value, something like **49** might be a choice.

This is addressed in Trivia, in combination with inline patterns. https://github.com/guicho271828/trivia/blob/master/level2/arrays.lisp

interested in your library but would you mind giving me some usage examples? I ... read your README and quasiquote-test.lisp but ... failed to understand how to use it.

inline pattens are useful in general, not only for lists. consider the case below, assuming we have a pattern called `inline`. ``` lisp (defpattern skip (n) `(inline ,@(mapcar (constantly '_)...

This is already implemented in Trivia.

Trivia implements `and` patterns as a combination of `guard1` and `or1` patterns. https://github.com/guicho271828/trivia/blob/master/level2/derived.lisp#L3

This issue should be closed.