Skip to content

Brainstorm the names of the primitive base classes #2

Open

Description

@VianneyMI

Context

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:

class RouteTicket(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

  1. added
    question
    on Nov 8, 2026
  2. added this to the v1.0: Stable milestone on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions