What is Nostr?
Capital /
npub1ryf…ur9z
2023-06-28 22:00:09
in reply to nevent1q…m7fk

Capital on Nostr: npub1lnh4s…x96ts :: I'm actually trying to implement a feature Rust and Idris lack ...

npub1lnh4sey03wehr2gr02c3a60jj4h2zl8a9053zdx6eydwnthhk90svx96ts (npub1lnh…96ts) :: I'm actually trying to implement a feature Rust and Idris lack natively.

Crystal has the ability to combine types into an anonymous tagged union types. Since it's tagged, you can match against the type like you would an `enum` type in Rust.

However, unlike Rust, each member of a union in Crystal is a separate type. This allows you to recombine types into new unions.

I'm sure you could hack together something in Rust, but out-of-the-box, no support.



Author Public Key
npub1ryfja06pvw3rnyv3hjgvy0en68lyj3wta8yq0vx3j6ch9gnsr9ss2wur9z