Skip to content

Provide some kind of minimal typechecking, throw useful errors #227

@schanzer

Description

@schanzer

Type-checking is hard, and checking tables is harder. So this issue is basically "is there any low-hanging fruit we can pick?"

The Transformer UI doesn't seem to mind if students enter an incorrect Range when they are filling in the Contract section for a number of Transformers. For instance, in a BS lesson we ask students to create and save a transformer which returns true if an animal’s name contains the letter “s.” The contract they ought to provide is Row -> Boolean. Currently, students can put Row -> Number, Row -> String, or Row -> Any, and the correct table is spit out every time (no error message). The only contract that produces an error is Row -> Boundary. (This is just one specific instance; there are others.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions