« Return to Thread: toURL for Strings?

Re: toURL for Strings?

by Jamie Webb-2 :: Rate this Message:

Reply to Author | View in Thread

On 2008-04-15 17:38:09 Stepan Koltsov wrote:
> Probably, toURL should be renamed to toUrl.

I agree that toUrl is preferable as a general convention and I use it
in my own code, which makes this case rather awkward: the equivalent
method on File is called toURL.

I think on balance it's probably better (i.e. least unexpected) to be
consistent with Java.

/J

 « Return to Thread: toURL for Strings?