-
Notifications
You must be signed in to change notification settings - Fork 176
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
NeoFormatter --> Formatter #5683
Conversation
I thought we had consensus on this but @robertbastian made some good points that What should I name it? I can introduce type aliases such as |
|
ah that doesn't work because it's doubly generic, and we'll end up with It generic in a |
FieldSetFormatter feels too inside baseball |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
I'd like this discussion resolved ASAP because I want it for the Alpha release and the UTW presentation. Does anyone have other bikesheds they want to toss in the hat? |
I'm ultimately fine with Formatter. I think if Temporal were not taken by ECMA I would find TemporalFormatter interesting. I don't think there's a good generic term for "formats a lot of things that do with time but not things that are unrelated to time" without calling it TimeFormatter, and that's wrong. |
is |
@robertbastian We do, but I don't want every user to have to think about it, plus it's not super discoverable. I'm fine with it as a component of our system, but not for discoverability. I find I think people can learn about fieldsets after they discover and try to use this type, it feels weird for them to be expected to make that connection so that they discover this type and decide it is what they want. I'd probably gloss over a type named |
I think the main entry point should be type aliases. Users can learn about |
If we wanted the entrypoint to be the type aliases, we would need a large number of type aliases, basically one per field set. Also, this gets us into naming problems again. I think it should be |
string agree! I'm not strongly opposed to doing all the aliases, but I do think it would be a pain, and I don't really want to commit to that right now. I think we have a good reason to deviate from style here with This said, it would be pretty cool if we could produce a souped-up utility type GenericFormatter that does fixeddecimal/currency/datetimezone/etc and uses a built up version of the GetField infra here. |
Replaced by #5708 |
#1317
Also hides the
neo
module, making future moving of types easier