Skip to content

Compiler: preview and release mode #5710

Open

Description

@lucascherzer

Description

Separate compiler modes for preview and release akin to rusts compiler profiles (debug and release)
Also:

  • programmatically cause compiler to stop with custom error message
  • todo annotations
    The preview/debug mode could be a more permissive mode, where todos are allowed and maybe highlighted, while the release mode would error when encountering todo annotations.

Use Case

This would allow users to be more confident they did not miss any "last minute" todos before releasing/publishing their work, while at the same time making "prototyping" an initial sketch easier, as handling such errors could be put off until a later point.

Activity

  1. added
    feature request
    on Jan 17, 2025
  2. laurmaedje commented on Jan 17, 2025

    @laurmaedje
    Member

    See #4035 for more discussion in that direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions