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.)
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 putRow -> Number,Row -> String, orRow -> Any, and the correct table is spit out every time (no error message). The only contract that produces an error isRow -> Boundary. (This is just one specific instance; there are others.)