- From: Lea Verou <notifications@github.com>
- Date: Tue, 30 Jul 2024 17:12:20 -0700
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 31 July 2024 00:12:24 UTC
> > Capabilities could simply be a static method on the translator, no? > > Sure, either way, although that's less symmetric than having each class vend its own instances, and takes us back toward kinda using classes as namespaces (just this time with static methods). IMO It’s about what makes more sense in terms of entity-relationships. The human mental model is that we’re querying the capabilities of the translator; creating a `TranslatorCapabilities` object [^1] is not a natural language construct. Which actually makes me wonder if we need this object at all. Why not simply an async getter and an async function on `Translator`? [^1]: as @martinthomson said, _please_ reconsider using "AI" as part of the name for any of these. -- Reply to this email directly or view it on GitHub: https://github.com/w3ctag/design-reviews/issues/948#issuecomment-2259399668 You are receiving this because you are subscribed to this thread. Message ID: <w3ctag/design-reviews/issues/948/2259399668@github.com>
Received on Wednesday, 31 July 2024 00:12:24 UTC