Skip to content

Macro output is wrong if the output is not function call. #48

@ikeji

Description

@ikeji

Source code.

(macro and (first rest...)
  (#args-if rest...
    (&& ~first (and ~rest...))
    ~first))

(and 1 2 3)

Expected output

(1 && (2 && 3))

Lispy script v0.3.6

(1 && (2 && ~(f,i,r,s,t)))

P.S.
I know the example is awful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions