Uri class and parser

2012-10-23 Thread Mike van Dongen
/uri.d Thanks, Mike van Dongen.

Re: Uri class and parser

2012-10-24 Thread Mike van Dongen
On Wednesday, 24 October 2012 at 07:38:58 UTC, Jacob Carlborg wrote: I would have expected a few additional components, like: * Domain * Password * Username * Host * Hash A way to build an URI base on the components. It would be nice if there were methods for getting/setting the path component

Re: Uri class and parser

2012-10-25 Thread Mike van Dongen
On Wednesday, 24 October 2012 at 20:36:51 UTC, Adam D. Ruppe wrote: On Wednesday, 24 October 2012 at 19:54:54 UTC, Jacob Carlborg wrote: A nitpick, I'm not really an expert on URI's but is "fragment" really the correct name for that I would call the "hash"? That would be "nose" in the example b

Re: Uri class and parser

2012-10-25 Thread Mike van Dongen
ocumentation :) It's a dirty job, but someone's gotta do it ;) I have commented all code that's not straightforward, but nothing for the Ddoc. Can you give me an example of how specific I need to be in the documentation? On Wednesday, 24 October 2012 at 19:54:54 UTC, Jacob Carlborg

Re: Uri class and parser

2012-10-25 Thread Mike van Dongen
On Thursday, 25 October 2012 at 13:59:59 UTC, Jens Mueller wrote: Just some small nit-picks. That's what I was hoping for :D in general checkout the Phobos style guide regarding function names etc. http://dlang.org/dstyle.html add some unittests. Thanks! I haven't read that pag

Re: Uri class and parser

2012-10-26 Thread Mike van Dongen
On Friday, 26 October 2012 at 11:52:09 UTC, John Chapman wrote: Looks good. Does it handle relative URIs? It would also be nice to support combining URIs from an absolute and relative portion. Another omission is handling file URIs. It doesn't support relative URIs as their syntax is not o

Re: Uri class and parser

2012-10-26 Thread Mike van Dongen
On Friday, 26 October 2012 at 14:22:07 UTC, Adam D. Ruppe wrote: On Friday, 26 October 2012 at 14:13:21 UTC, Mike van Dongen wrote: I am however considering it because even though not (clearly) defined, they are URIs and they are often used. The basedOn function in my uri struct in cgi.d does

Re: Uri class and parser

2012-11-08 Thread Mike van Dongen
Been thinking about this for a while now, but I can't decide which one I should choose. Currently there is a class URI which has an static method (parser) which returns an instance of URI on success. On failure it will return null. I agree with Jens Mueller on the fact that URI should be a s

Re: Uri class and parser

2012-11-08 Thread Mike van Dongen
On Thursday, 8 November 2012 at 15:32:59 UTC, jerro wrote: Something entirely else is the CTFE compatibility of URI. At first I though that because a new instance of URI can be created as a const, it would be evaluated on compile time. This is part of how I test CTFE at the moment: const URI u

Re: Uri class and parser

2012-11-08 Thread Mike van Dongen
On Thursday, 8 November 2012 at 17:02:25 UTC, jerro wrote: Thnx. Got myself some new errors ;) It seems that std.string.indexOf() does not work at compile time. Is there a solution or alternative method for this? I guess the proper solution would be to make std.string.indexOf work at compile

Re: Uri class and parser

2012-11-08 Thread Mike van Dongen
eptable in phobos? On Thursday, 8 November 2012 at 15:10:18 UTC, Mike van Dongen wrote: I agree with Jens Mueller on the fact that URI should be a struct instead of a class. But then I won't be able to return null anymore so I should throw an exception when an invalid URI has been passed to the constructor.

Re: DConf 2013 on kickstarter.com: we're live!

2012-11-14 Thread Mike van Dongen
On Tuesday, 13 November 2012 at 01:08:01 UTC, Andrei Alexandrescu wrote: Update - we've crossed $20K! At this point we're one major backer away from achieving the goal, and we're looking at a number of options. Please share with your friends and coworkers, and bring the discussion up with your

Re: DConf 2013 on kickstarter.com: we're live!

2012-11-14 Thread Mike van Dongen
On Tuesday, 13 November 2012 at 01:08:01 UTC, Andrei Alexandrescu wrote: Update - we've crossed $20K! At this point we're one major backer away from achieving the goal, and we're looking at a number of options. Please share with your friends and coworkers, and bring the discussion up with your

Re: DConf 2013 on kickstarter.com: we're live!

2012-11-14 Thread Mike van Dongen
On Tuesday, 13 November 2012 at 01:08:01 UTC, Andrei Alexandrescu wrote: Update - we've crossed $20K! At this point we're one major backer away from achieving the goal, and we're looking at a number of options. Please share with your friends and coworkers, and bring the discussion up with your

Re: DConf 2013 on kickstarter.com: we're live!

2012-11-14 Thread Mike van Dongen
On Tuesday, 13 November 2012 at 01:08:01 UTC, Andrei Alexandrescu wrote: Update - we've crossed $20K! At this point we're one major backer away from achieving the goal, and we're looking at a number of options. Please share with your friends and coworkers, and bring the discussion up with your

Re: DConf 2013 on kickstarter.com: we're live!

2012-11-14 Thread Mike van Dongen
On Monday, 22 October 2012 at 17:25:28 UTC, Andrei Alexandrescu wrote: We're on! For one month starting today, we're raising funding for DConf 2013. http://www.kickstarter.com/projects/2083649206/the-d-programming-language-conference-2013-0 Please pledge your support and encourage your friends