Handling Structs vs Classes in Effect with Instanceof Validation
What's the effect way of handling this. After changing all my structs to classes I'm starting to realise that Effect uses instanceof under the hood to validate, which I suppose makes sense... but now it seems I'm torn between two options, either create a class for passing all this stuff, or have the verboseness of structs. I'm sure there's some kind of workaround?
https://effect.website/play#85659777d59c
The issue is that there are no TS errors, only runtime errors, which is concerning
https://effect.website/play#85659777d59c
The issue is that there are no TS errors, only runtime errors, which is concerning
