Cross-platform path specification (was RE: Access directory relatively)

Richard A. O'Keefe ok at cs.otago.ac.nz
Wed Aug 7 01:49:18 UTC 2002


"Alejandro F. Reimondo" <aleReimondo at smalltalking.net> wrote:
	The selector #, is commonly used for contatenation of
	 collections (and composites); not for routing.
	
	Why not:
	
	    dir := FileDirectory default / 'foo' / 'bar' / 'baz'.


I note that the Burroughs WFL language used _exactly_ this idea back
in the 70s:  x / y had the value (x),"/",(y).  Worked just fine.
Since / is the only approved path delimiter in URLs, it's the obvious
operator to use here.

	    dir := FileDirectory default @ 'foo' @ 'bar' @ 'baz'.
	
@ is used for points (and 3d points) and does not have the analogical
force of any well known file system syntax or URI syntax to override that.




More information about the Squeak-dev mailing list