ZTree.com  | ZEN  | About...  

 Index   Back

Choice of the separator   [ZEP]

By: Slobodan Vujnovic   Homepage   France  
Date: Dec 22,2020 at 18:10
In Response to: [ZEP] Generic Open (ext.BAT) feature (Slobodan Vujnovic)

In the suggested format for the generic Open
!MP3!MID!KAR!FLAC!WAV!CDA!OGG!WMA!.BAT
the choice of the separator, '!' in this case, is up
for discussion, of course.

Also, the leading and trailing '!' seem superflous,
what's wrong with removing them:

MP3!MID!KAR!FLAC!WAV!CDA!OGG!WMA.BAT

My reasoning is that the latter format needs more parsing
code, because you have two separators to think about,
'!' and '.', but it's probably a trivial coding problem.

With the first format, you just look for a first matching
'!ext!' substring in the file spec base part -- but coding
is none of my business, of course.

However, the main reason for this choice is that, if a file
starts with '!', it will sort with other similar generic Open
batch files. If this convention is adopted, such files will
be easier to spot as a category, provided the user does not
use '!' in their private files a lot.

Also, '!' is the very first printable ASCII character, so
these files will be at top in File View (if sorted by Name).

153 views      
 

Messages in this Thread

 
95,364 Postings in 12,030 Threads, 350 registered users, 65 users online (0 registered, 65 guests)
Index | Admin contact |   Forum Time: Apr 19, 2021 - 10:20 pm UTC  |  Hits:38,964,384  (11,885 Today )
RSS Feed