Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [file path split-path] Naming "first split-path"

From: gregg:pointillistic at: 12-Oct-2010 16:18

CR> If you're doing this, won't you also want a function to get the CR> file part too? If so, the 'of' seems better than 'to', it being CR> usable for both... CR> path-of file CR> file-of file (or perhaps name-of) CR> This would also be useful... CR> ext-of file Great point Carl. I use SUFFIX? quite a lot, which took getting used to, as it is less programmerish than "extension". I would say type-of might be a four-letter option to match the length of 'path and 'file, but MIME types are probably a better match for that. Hmmm, I wonder if there's a good way to name things that normalizes file! and url! terminology (drive/path/name/extension, host/path/target)? -- Gregg