Skip to content

RFC: compiler could prioritize using let over var in compiled JS code. #3

@barca

Description

@barca

I could be wrong, but I believe that OCaml's variable scoping more closely aligns with javascript's, let than var. I noticed that the code generated by the compiler in the comments uses var exclusively. I'd love to hear other people's thoughts on the matter.

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