Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw immediately for poor “map” input. #222

Closed
theengineear opened this issue Nov 20, 2024 · 0 comments
Closed

Throw immediately for poor “map” input. #222

theengineear opened this issue Nov 20, 2024 · 0 comments

Comments

@theengineear
Copy link
Collaborator

theengineear commented Nov 20, 2024

Currently, when you pass a non-array value to map… it doesn’t yell at you. Only when you go to actually go to bind the value that value do you get an error.

The problem is that iff we immediately throw an error, the actual stack trace will point you to the line-in-question. However, if we wait for later to do this… we lose that context — which is a major loss of development efficiency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant