Hi guys, nothing terrible, just some comments on paths and file references I found today myself doing in a method: ^ (AbsolutePath withAll: anAbsolutePath path segments, aRelativePathFilename segments) asFileReference exists. To put a relative path on top of an absolute path because lack of a better option But shouldn't this be doable? absolutePath / relativePath / aFilename We're half an inch of that syntax sugar I saw that / expects only strings, but we can take advantage of file references, wouldn't make more sense to expect both strings or file references? and then there is this '' asFileReference = '/' asFileReference. true doesn't feel right thoughts? sebastian o/
suggestion, would be nice to have AnstractPath>>asPath ^ self On Jan 13, 2014, at 11:07 PM, Sebastian Sastre <SEBASTIAN@FLOWINGCONCEPT.COM> wrote:
Hi guys,
nothing terrible, just some comments on paths and file references
I found today myself doing in a method:
^ (AbsolutePath withAll: anAbsolutePath path segments, aRelativePathFilename segments) asFileReference exists.
To put a relative path on top of an absolute path because lack of a better option
But shouldn't this be doable?
absolutePath / relativePath / aFilename
We're half an inch of that syntax sugar
I saw that / expects only strings, but we can take advantage of file references, wouldn't make more sense to expect both strings or file references?
and then there is this
'' asFileReference = '/' asFileReference. true
doesn't feel right
thoughts?
sebastian
o/
Please open an issue and propose the suggestions as slices. Doru On Tue, Jan 14, 2014 at 12:42 PM, Sebastian Sastre < sebastian@flowingconcept.com> wrote:
suggestion, would be nice to have
AnstractPath>>asPath
^ self
On Jan 13, 2014, at 11:07 PM, Sebastian Sastre < SEBASTIAN@FLOWINGCONCEPT.COM> wrote:
Hi guys,
nothing terrible, just some comments on paths and file references
I found today myself doing in a method:
^ (AbsolutePath withAll: anAbsolutePath path segments, aRelativePathFilename segments) asFileReference exists. To put a relative path on top of an absolute path because lack of a better option
But shouldn't this be doable?
absolutePath / relativePath / aFilename
We're half an inch of that syntax sugar
I saw that / expects only strings, but we can take advantage of file references, wouldn't make more sense to expect both strings or file references?
and then there is this
'' asFileReference = '/' asFileReference. true
doesn't feel right
thoughts?
sebastian <https://about.me/sebastianconcept>
o/
-- www.tudorgirba.com "Every thing has its own flow"
participants (2)
-
Sebastian Sastre -
Tudor Girba