Skip to content

Conversation

@karlseguin
Copy link
Collaborator

Previously, we were passing our WebAPIs directly as an anonymous tuple. This resulted in Env(T) having an awful name - a name composed of hundreds of classes.

By wrapping the anonymous tuple into a normal struct, the Env now gets a sane name which helps improve stack traces (and profiling, and debugging, ...)

@krichprollsch
Copy link
Member

@karlseguin LGTM, please could you rebase the PR and merge it?
Thanks

Previously, we were passing our WebAPIs directly as an anonymous tuple. This
resulted in Env(T) having an _awful_ name - a name composed of hundreds of
classes.

By wrapping the anonymous tuple into a normal struct, the Env now gets a sane
name which helps improve stack traces (and profiling, and debugging, ...)
@karlseguin karlseguin force-pushed the env_debug_ergonomics branch from 013492c to 5f05de3 Compare May 5, 2025 08:04
@karlseguin karlseguin merged commit 7c2f7b6 into main May 5, 2025
12 checks passed
@karlseguin karlseguin deleted the env_debug_ergonomics branch May 5, 2025 08:22
@github-actions github-actions bot locked and limited conversation to collaborators May 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants