Skip to content

Revisit Type Checking Throughout Project #84

Description

@gbroques

We do a lot of type checking throughout the project as there's a lot of code that needs to know this object is an axis, frame, extruder, heated bed, etc.

This seems like a cross-cutting concern, and we should probably have some type_check utility module or documented pattern for solving this problem.

Research

Look for usages of .Proxy.Type in code.

image

Summarizing what code needs to know about the "type" of objects in the document:

  1. Module for getting objects from the user's selection
    • For preventing passing invalid objects like plain cubes to attachment functions.
  2. Attachment functions
    • For validating objects passed to attachment function are as advertised.
  3. and the function for building the cut list
    • For querying a document for the objects in it.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions