Skip to content

Wrap output in parenthesis #1

@jgierer12

Description

@jgierer12

Wouldn't wrapping the macro output in parenthesis () largely solve the pitfall you describe in the readme?

For example,

const helloWorld = { hello: 'world' }.hello;

isn't valid JS but

const helloWorld = ({ hello: 'world' }).hello;

is and works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions