Hacker News new | ask | show | jobs
by timdeve 1936 days ago
Yes, exactly, it's because of Structural Typing that you have to implement Phantom Types in that hacky way rather than Structural Typing being the "trick".