Skip to content

Rename Nullable::Some to Nullable::NotNull #16603

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

Closed
wants to merge 1 commit into from

Conversation

SiegeLord
Copy link
Contributor

A few reasons:

  • Nullable is basically unused, save for one argument in the glob function in liblibc, so this change likely impacts nobody negatively. The constructors are never used, and I don't foresee people using them. The people implementing the glob functionality don't seem to be reaching for this POSIX glob function, so it seems unlikely to be used heavily.
  • At the same time, the old name, Some, needlessly conflicted with the same re-exported name in the prelude, which impacted everybody who use glob imports with libc. Changing it to something else would simplify things greatly for those people.
  • NotNull seemed like the best option (others included Just, Valid, etc. which all had somewhat different connotations than what this type was going for (even Some doesn't quite seem like the opposite of Null)). Other options included removing the type completely and adding a special, glob-specific type. This latter approach doesn't seem future-proof.

Overall, I feel like this is a mildly positive change.

bors added a commit that referenced this pull request Aug 20, 2014
A few reasons:

* `Nullable` is basically unused, save for one argument in the `glob` function in `liblibc`, so this change likely impacts nobody negatively. The constructors are never used, and I don't foresee people using them. The people implementing the glob functionality don't seem to be reaching for this POSIX `glob` function, so it seems unlikely to be used heavily.
* At the same time, the old name, `Some`, needlessly conflicted with the same re-exported name in the prelude, which impacted everybody who use glob imports with `libc`. Changing it to something else would simplify things greatly for those people.
* `NotNull` seemed like the best option (others included `Just`, `Valid`, etc. which all had somewhat different connotations than what this type was going for (even `Some` doesn't quite seem like the opposite of `Null`)). Other options included removing the type completely and adding a special, `glob`-specific type. This latter approach doesn't seem future-proof.

Overall, I feel like this is a mildly positive change.
@bors bors closed this Aug 20, 2014
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.

3 participants