You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Brainstorm the names of the primitive base classes #2
In 0.1.0 a primitive class plays two roles: the class is the question and its instances are the answers (like a Pydantic model's schema and data). The base classes are named after TypeSafe's primitives:
classRouteTicket(jev.Choice[Department]):
"""Which team should handle this ticket?"""res.answers.department.choice# an instance of RouteTicket is an answer
Goal
Find base-class names that reconcile questions and answers, before the API freezes at 1.0.
Scope
A dedicated brainstorming session on naming.
Design considerations
Alternatives considered and set aside for now:
NoulQuestion / ChoiceQuestion[T] / ScoreQuestion[T]: the declaration reads well, but the answers are then "questions" by name.
NoulAnswer / ChoiceAnswer[T] / ScoreAnswer[T]: matches what you read after the call, less so what you declare.
The box primitive (#5) takes whichever names come out of this issue.
Activity