Control Flow with Type Checking

2021-02-15 Thread johnconway
Thanks Vindaar, that's very clear.

Control Flow with Type Checking

2021-02-15 Thread johnconway
Hi, this is probably a stupid newb question, but I don't understand how to implement control flow by checking types. The following code is what I have: import typetraits type Foo = object foos: string type Bar = object bars: string let foo =