8 Oct
2012
8 Oct
'12
9:42 p.m.
And I knew there was another suggestion tickling around in my subconscious... I have a new favourite: `p & q` +1: unlikely to be confused with int or set &; strings do not currently use it; suggests concatenation; short, can work with two paths or path and string if needed. p + ".ext" to add a suffix to the file name; an error if p is a directory. "spam" + p should probably an error. I can't think of a good use case for prepending a string to a path. p & q to concatenate (join) path q to path p. p.add(q [, r, s, ...]) to concatentation multiple path components at once, more efficient than p & q & r & ..., and to make the function more discoverable and searchable. -- Steven