Type to represent URIs?

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Wed Jan 30 15:17:28 UTC 2019


On Monday, 28 January 2019 at 17:53:17 UTC, Victor Porton wrote:
> Which type should I use to represent (absolute) URIs (or URLs)?
>
> Is it OK to use `string` for this, or is there a better option?
>
> I could also use URI class from my library:
> https://github.com/vporton/redland-bindings/blob/dlang/dlang/source/rdf/raptor/uri.d
> https://github.com/vporton/redland-bindings/blob/dlang/dlang/source/rdf/redland/uri.d
>
> but as you see in this library there are two choices for URI 
> class and it's unclear which of the two I would use.

I like std.path it does not use a path type and works directly 
off strings. There are benefits to a path type, but I don't know 
if that is enough.

So I think I would prefer a uri library doing the same thing.


More information about the Digitalmars-d mailing list