Closed kjetilk closed 4 years ago
There is a bunch of these in Types:URI that I had forgotten about. We should look into if we should add to them, or perhaps add types to Attean.
Agreed. I've always hated the extra syntax of using the namespace objects to instantiate an IRI
. I don't recall why we didn't do more with coercions in the past (and I seem to recall we did some but commented them out). I've been busy with work, but would be happy to merge a PR (re-)enabling coercions, or I can try to get to it slowly as I'm able.
These are now in Types::URI, so we can close this.
Currently, the coercions from
Str
andURI
are commented out, and they are missed.In particular, in Attean, when using
URI::Namespace
, I have to doand it feels a bit ugly to explicitly go through a string for conversion between two very similar types. So, it seems like a good start to make these coercions available.