Skip to content

Language involving "field set", "field set with options", and "semantic skeleton" #6472

Open
@sffc

Description

@sffc

Split from #6242

According to UTS 35, a "field set" is the set of fields, such as "year, month, and day". A "semantic skeleton" is a field set coupled with formatting options such as length and alignment.

We are a bit loose with this distinction in ICU4X docs and APIs. Part of this is because we define a type per field set, like fieldsets::YMD, but that type is a struct that contains options. We also have APIs such as FieldSetBuilder, which should really be a SemanticSkeletonBuilder, but we don't use the term "semantic skeleton" anywhere in our API.

@markusicu had suggested "field set with options" to avoid the "semantic skeleton" terminology, which is a bit heavy on technical jargon. Implementing that change would involve changing a bunch of parameters and variables currently named field_set to instead be field_set_with_options (non-breaking). If we want to be strict, it would also involve renaming FieldSetBuilder to FieldSetWithOptionsBuilder (breaks 2.0). There may be other APIs also impacted.

Thoughts?

@Manishearth @robertbastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-datetimeComponent: datetime, calendars, time zonesT-docs-testsType: Code change outside core library

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions