some 1.2.4 copy "some: ^1.2.4" to clipboard
some: ^1.2.4 copied to clipboard

outdated

Some / Maybe / Option / Result / Nullable, like Haskel Maybe, Can avoid semantic confusion caused by returning null when returning a value

1.2.4 #

Fix lib/src/maybe.dart. (-0.50 points)
Analysis of lib/src/maybe.dart reported 1 hint:
line 28 col 28: Avoid types as parameter names.

Fix lib/src/none.dart. (-0.50 points)
Analysis of lib/src/none.dart reported 1 hint:
line 18 col 28: Avoid types as parameter names.

Fix lib/src/null.dart. (-0.50 points)
Analysis of lib/src/null.dart reported 1 hint:
line 12 col 44: Avoid types as parameter names.

1.2.3 #

Rewritten implementation

Fix bug: eq

  • Some(1) != 1

now

  • Some(1) == 1

Add eq test

1.2.2 #

remove const None
Fix bug: const None

1.2.1 #

Fix bug(null.dart): defaultVal and defaultValFn when Some while return None

1.2.0 #

Fix bug: defaultVal and defaultValFn when Some while return None

1.1.1 #

const None

1.1.0 #

Add const constructor

1.0.1 #

Add example

1.0.0 #

Create this

3
likes
0
pub points
43%
popularity

Publisher

unverified uploader

Some / Maybe / Option / Result / Nullable, like Haskel Maybe, Can avoid semantic confusion caused by returning null when returning a value

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on some