[squeak-dev] Re: Selection in new file list

Andreas Raab andreas.raab at gmx.de
Thu Oct 8 04:04:41 UTC 2009


K. K. Subramaniam wrote:
> On Wednesday 07 Oct 2009 10:26:48 pm Nicolas Cellier wrote:
>> In st80, there was also a nice feature: * and ? would also apply to any
>> part of the hierarchy
>> like: /home/nice/squeak/*/*.cs
> Since Squeak is a VM accessing filesystem on its host, shouldn't we be using 
> URLs in the image and let FilePlugin resolve it into pathnames?

I'm not particularly in favor of that option in tools that actually 
expose the file names to users. When you type file paths in, it just 
feels wrong to type, e.g., /c/users/andreas/; and typing 
file:///C:/users/andreas/ is just plain awful (yes, that's *three* 
slashes after the colon - copied right out of firefox).

It would be more useful if slashes could be universally used in code 
though; having to write stuff like

   foobar := (FileDirectoy default directoryNamed: 'foo') 
directoryNamed: 'bar'.

is every bit as awful. Perhaps a binary operator #/ would be in order? I.e.,

   foobar := FileDirectory default / 'foo' / 'bar'.

(although this overloads the meaning of #/ which is not great either)

Cheers,
   - Andreas



More information about the Squeak-dev mailing list