Login  Register

Re: Zinc: urls without scheme

Posted by Stéphane Ducasse on Aug 06, 2011; 9:36am
URL: https://forum.world.st/Zinc-urls-without-scheme-tp3720657p3723093.html


On Aug 5, 2011, at 10:52 AM, Sven Van Caekenberghe wrote:

> Hi Igor,
>
> On 05 Aug 2011, at 10:08, Igor Stasenko wrote:
>
>> 'www.squeaksource.com' asZnUrl host -> nil
>
> That seems like a bug to me, I'll look into it. Thanks for reporting this.
>
>> 'http://www.squeaksource.com' asZnUrl host ->  'www.squeaksource.com'
>>
>> i wonder if url should have notion of default scheme and if sheme not
>> specified, use a default one i.e. 'http:' ?
>
> Hmm, that is more or less by design, I'll think about it.
>
> A default can also be explicit in the message like #portOrDefault that way the object keeps representing what was parsed, but the user specifies what kind of default behavior (s)he wants.

Yes it sound like a good idea.

>
> Regards,
>
> Sven
>
>
>