Skip to content

[Stdlib] Add type check macros #470

Description

@alexmozaidze

Having simple macros like string?, number?, table?, nil?, etc. would increase the readability of code that may use them.

The only thing I'm worried about is the existing table? in macro context. iirc, it checks if an AST node is a table literal, as opposed to runtime type of table. I think it wouldn't be unreasonable to rename AST checking macros to be: table-literal?, sequence-literal?, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedWaiting on another issue/milestone/taskenhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions