The downfall of Brydge: iPad keyboard company folds
9to5mac.com10 ポイント投稿者 mc101 コメント
type MyUnion = { type: "foo"; foo: string } | { type: "bar"; bar: string };
vs type MyUnion = Foo of { foo: string } | Bar of { bar: string };
You still need some runtime encoding of which branch of the union your data is; otherwise, your code could not pick a branch at runtime. val is_admissible : min_age:int -> max_age:int -> bool [1]: https://engineering.fb.com/2018/05/22/open-source/open-sourcing-katran-a-scalable-network-load-balancer/
[2]: https://blog.cloudflare.com/unimog-cloudflares-edge-load-balancer // DEFAULT_RELAY is the default relay used (can be set using --relay)
var (
DEFAULT_RELAY = "croc.schollz.com"
DEFAULT_RELAY6 = "croc6.schollz.com"
DEFAULT_PORT = "9009"
DEFAULT_PASSPHRASE = "pass123"
INTERNAL_DNS = false
)
[1]: https://github.com/schollz/croc/blob/f91c7a9948f94007d6be2b0...