Skip to content

q(func)(...) #44

Description

@anntzer

It would be nice if it was possible to use the @q decorator for a single function call (i.e., q(func)(...)). The idea would be for q to check whether its argument is callable, and, if it is, wrap it with its arguments-and-results-logging version.
Extra points if this checks whether the next token is a ( before deciding whether to do this but that may be overkill.
Thoughts?

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