Skip to content

Conversation

@eush77
Copy link
Contributor

@eush77 eush77 commented Feb 18, 2019

nothing is only used in one place, and as a function it was called incorrectly before: nothing() instead of nothing(undefined). (See #500 (comment).)

This PR fixes that by removing the extra layer of function wrapping entirely, and making nothing a constant of type Maybe a. This is to avoid the more verbose alternative — adding the undefined argument.

`nothing` is only used in one place, and as a function it was called
incorrectly before: `nothing()` instead of `nothing(undefined)`.

This commit fixes that by removing the extra layer of function wrapping
entirely, and making `nothing` a constant of type `Maybe a`. This is to
avoid the more verbose alternative - adding the `undefined` argument.
@KtorZ KtorZ merged commit c0870eb into MostlyAdequate:master May 24, 2019
@KtorZ
Copy link
Member

KtorZ commented May 24, 2019

Good idea!

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 this pull request may close these issues.

2 participants