Skip to content

Implement @warn, @error, ... without try/catch? #36174

@schlichtanders

Description

@schlichtanders

Trying out some autodifferentiation with Zygote I was surprised by code not being autodifferentiable because it made use of @warn macro.

Supporting try/catch in Zygote is an open issue however does not seem to be easily solvable in its whole generality any time soon.

I think supporting autodifferentiation in most parts of Julia is highly beneficial to the whole ecosystem. Hence I wanted to ask whether it is possible to rewrite @warn / @error and other standard Base logging macros to don't use try/catch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    loggingThe logging framework

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions