>>>>> "Eric" == Eric Bezault <ericb@...> writes:
Eric> PGC@... wrote:
>> The '?' character is used as a *parameter* marker in SQL that
>> pass through the ODBC API.
Eric> OK. So now I don't know what to do. The ODBC API uses '?',
Eric> but it is not uncommon to see this kind of Eiffel code (for
Eric> example to build error messages):
Eric> report_error ("$1 errors found in file $2", <<nb.out,
Eric> That's why I thought that using:
Eric> format ("$d errors found in file $s", <<nb, filename>>)
Eric> was more natural than:
Eric> format ("?d errors found in file ?s", <<nb, filename>>)
Eric> Now I'm not sure anymore which one is better. Any thoughts?
Many - none of them conclusive.
The "natural" meanings of $ and ? are respectively money and question,
so in that sense ? is the better choice.
But $ is widely used in Unix and other computing environments to
indicate a variable substitution.
In particular, it is used in regular expressions, which are already in
Gobo, to mark replacements.
So I think on balance, it is better to use $.
Colin Paul Adams