In a world with no pathname versions worth speaking of, what should
:if-exists :new-version do?
if a file system does not support distinct file versions and does
not distinguish the notions of deletion and expunging, :new-version
might be treated the same as :rename or :supersede...
but my inclination is that :error might be a better choice. Firstly,
comments on that, but there's a wrinkle.
Consider the logical pathname translations for "FOO" being of the form
and a request for (open "FOO:BAR.TXT.1" :if-exists :new-version) being
made. What happens if /tmp/my/files/1/bar.txt exists? Should we
attempt to open /tmp/my/files/2/bar.txt?
Ouch. My head hurts.
http://www-jcsu.jesus.cam.ac.uk/~csr21/ +44 1223 510 299/+44 7729 383 757
(set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s b)))
(defvar b "~&Just another Lisp hacker~%") (pprint #36rJesusCollegeCambridge)