calendar_constants 0.0.2 copy "calendar_constants: ^0.0.2" to clipboard
calendar_constants: ^0.0.2 copied to clipboard

Dart 1 only

An attempted improvement on how to expose weekday and month constants in Dart

dart-calendar-constants #

Dart currently exposes weekday and month constants as 3-letter abbreviated static constants in DateTime. This is bad because:

  • you always have to prefix them with "DateTime."
  • abbreviations are unreadable (especially for non-native english speakers?)
  • not really specific to DateTime, so misplaced
  • weekday and month constants are mixed together

This pub package is a proposal to:

You can compare the old way and new way.

If you agree, then star this issue.

Presumably these libraries would move to a more broad ranging calendar package in the future.

0
likes
10
pub points
0%
popularity

Publisher

unverified uploader

An attempted improvement on how to expose weekday and month constants in Dart

Homepage

License

BSD-2-Clause (LICENSE)

More

Packages that depend on calendar_constants