Consider adding switch to opt out of options type name disambiguation
- Lenguaje dominante
- Rust
- Estrellas
- 7
- Forks
- 11
- Merge medio
- 2 d 5 h
- PR fusionados (30 d)
- 5
Descripción
For `FooClient`, all client/client method options will have the prefix `FooClient`. This is to disambiguate the case when an SDK contains multiple clients and two (or more) clients have a method with the same name (e.g. `SomeMethod`), Without the prefix, `SomeMethodOptions` would collide.
For SDKs with a single client, and that will _always_ have a single client, the prefix is unnecessary and creates ugly names. We could consider adding a switch to opt out of this prefix. It works IFF an SDK contains a single client, else an error is generated (this is what we do in the go emitter). Note that opting in and then later opting out would result in a breaking change. So, one must be 100% confident that the SDK in question will always contain only one client.
Guía de contribución
Línea de trabajo
Comienza revisando el comportamiento de nomenclatura de tipos de opciones del emisor de Rust y compáralo con el manejo de un único cliente del emisor de Go. Define dónde debe ubicarse el interruptor de exclusión, cómo deben producir un error varios clientes y verifica que los SDK con un único cliente omitan el prefijo del cliente sin cambiar el comportamiento predeterminado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- rust
- Área
- tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100