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

Add ignore functions for each module #239

Closed
tsnobip opened this issue Jul 22, 2024 · 0 comments · Fixed by rescript-lang/rescript#7348
Closed

Add ignore functions for each module #239

tsnobip opened this issue Jul 22, 2024 · 0 comments · Fixed by rescript-lang/rescript#7348
Assignees

Comments

@tsnobip
Copy link
Contributor

tsnobip commented Jul 22, 2024

From time to time I have to ignore the result of a function in my code and I tend to use the generic ignore function, but as you know it can be pretty dangerous and sometimes I actually ignore a non-applied function (it's much less common since we have uncurried mode but can still happen) or something that just doesn't have the type I expect, what do you think about having for each module an ignore function, like a Int.ignore that would only accept an int for example?

@tsnobip tsnobip self-assigned this Mar 7, 2025
tsnobip added a commit to rescript-lang/rescript that referenced this issue Mar 19, 2025
* add ignore for every stdlib type t (fixes rescript-lang/rescript-core#239)

* ignore generated_mocha_test for formatting
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

Successfully merging a pull request may close this issue.

1 participant