Skip to content

Error handling when returning undefined #12

@met4000

Description

@met4000

Issue type:

  • ➕ Feature request

Short description:

Functions that return undefined (e.g. function f() { return undefined; }, or function f() {} ) give a rather verbose error as follows when apply0ed;
image

It would be desireable to either have: a dedicated error for a function returning undefined, rather than a translation error occuring (e.g. 'error: function returned undefined instead of a value'); or for an explicit 'undefined' singleton to be the output instead of erroring, allowing for logic such as equals(f(), undefined) on the InDy side.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Options

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions