Skip to content

Add ignore functions for each module #239

Closed
rescript-lang/rescript
#7348
@tsnobip

Description

@tsnobip

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions