3 ms·
is the python code public ? I toyed with phantom type in kotlin recently (toy examples); I'm curious how it would be done in python.
by agumonkey 8y ago
is the python code public ?
I toyed with phantom type in kotlin recently (toy examples); I'm curious how it would be done in python.
- staticassertion 8y agoIt's not. The short answer is it's the same thing as Rust, except instead of a compile time guarantee that your state isn't reused I have an assertion and test coverage.
- agumonkey 8y agoaight, thanks