|
On Thu, Jun 30, 2016 at 11:22 AM, CRPence wrote:
On 30-Jun-2016 09:27 -0500, John Yeung wrote:<<SNIP>>
<<SNIP>> I suppose the verbiage of the instructions contains
cultural, educational, and linguistic biases, the same way many,
many standardized test questions do. <<SNIP>>
I suspect that their choice of the term /delimited by/ is one such
example. I eventually concluded that, most likely, they meant to have
used the term /separated by/.
IME the computing vernacular has defined the former term as fully
enclosing the boundaries [of the string of alpha characters for this
scenario], such that both beginning and end must have the non-alpha;
their example, "Automotive"->"A6e" seemed to emphasize that
intention. I consider the latter term to imply only one boundary of
the string of alpha characters, either the beginning or the end, need
be demarcated by a non-alpha; e.g. with comma _separated_ values,
wherein some of the values additionally may be _delimited_ to avoid a
reader mistaking a separator-character that is embedded within the
delimited-value, as an actual separator-character denoting the next
value.
Are you saying that, to you, a "delimiter" is something that must
appear in pairs, with one on either side of what's being delimited;
whereas a "separator" is something that just sits between the two
items it's separating, with no requirement or implication of pairing?
In my experience and estimation, the term "delimiter" includes the
role that commas play in CSVs, and indeed you will often find CSV
files referred to as "comma-delimited". In an Excel-flavored CSV, the
quotation mark is never *called* a delimiter, even though of course it
delimits something, in the English sense of the word "delimit". So
commas and quotes are both delimiters (broadly speaking), but they
delimit different things and have different semantics.
Out of curiosity, which definition did you use, for the solution you
started coding? Did you ever imagine any alternatives to your first
choice? I would guess that if your first inference was /separated
by/, then no other alternative definitions were considered.?
Same as the comma in a CSV; no; correct.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.