by blkhp19 · 3y ago · 0 comments
enum AllowList {
case all
case some([ClientIdentifier])
}But that is exactly the point: it's only conceptually similar, but in this case deceivingly so. In Rust, we make abundant use of newtypes; this enum is also a new type. Only once it is treated as such does actual type safety kick in. I take it the same principle applies to Haskell. Good to know there's some merit to it.