Skip to content

feat: enable asserts to be left in production builds based on pattern matching/namespace #9066

@runspired

Description

@runspired

Over time many issues have been reported that were due to emergent unspecified behaviors that occur once system expectations have not been met.

Some examples:

Generally speaking we don't want the default to be that asserts are left in production environments, as these massively balloon the size of the project and create performance bottlenecks. But we also want to continue using asserts as inline-unit-tests and guardrails for debug builds.

We have the infra in place though to move to a pattern that would allow some or all asserts to be left in production builds if thats what the user wanted in order to provide better debugging of their app.

Note
Likely we would want to at least specify some asserts as still being debug-only due to their overhead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🏷️ featThis PR introduces a new feature

    Projects

    Status

    Needs Planning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions