Skip to content

Should NeoFormatter and TypedNeoFormatter have default generics? #5687

Closed
@sffc

Description

@sffc

Currently if you want a time formatter you need to explicitly set the calendar type to NeverCalendar / ().

This raises the general question, should they have default generics?

The time formatter specific concern can also be addressed by

  1. Make a type alias such as pub type TimeFormatter
  2. Make format_time imply this bound

@Manishearth @robertbastian

Metadata

Metadata

Assignees

Labels

C-datetimeComponent: datetime, calendars, time zones

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions