What is Nostr?
Tanner B 🦕🧁 /
npub1xuv…n8s0
2024-11-08 23:03:13
in reply to nevent1q…p0py

Tanner B 🦕🧁 on Nostr: npub1srcgh…xfms4 you used to not be able to do something like this: let type: ...

npub1srcgh979ychudzrha7asxa7kvennpghghzzadmv5gcunfw5p72qs6xfms4 (npub1src…fms4) you used to not be able to do something like this:

let type: Any.Type = …
let rawRepType = type as? RawRepresentable.Type

It would yell at you because RawRepresentable has "self or associated type constraints"

Well by adding `any P`, you can now interact with those types of existentials if their constraints don't matter to you at compile time!
Author Public Key
npub1xuvuw3g5j35r7zny7nkps3erz77ne2lvwtar9v5tc6r5lx9qzayq69n8s0