Skip to content

About the position of (print ";") in cgen.janet #103

@sogaiu

Description

@sogaiu

I'm not at all familiar with cgen, but when looking over the code I noticed these bits:

jpm/jpm/cgen.janet

Lines 415 to 416 in 207ebf3

(emit-declaration (form 2) (form 3) (form 4)) (print ";"))
(emit-declaration (form 1) (form 2) (form 3) (print ";"))))

The positions of the (print ";") seem to differ, i.e. one is outside the emit-declaration call:

(emit-declaration (form 2) (form 3) (form 4)) (print ";")) 

and the other is inside:

(emit-declaration (form 1) (form 2) (form 3) (print ";")))) 

Is this intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions