TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Re: "test if" vs. "determine whether" - for API function descriptions ?
Subject:Re: "test if" vs. "determine whether" - for API function descriptions ? From:Robert Lauriston <robert -at- lauriston -dot- com> To:Monique Semp <monique -dot- semp -at- earthlink -dot- net> Date:Tue, 5 Jan 2016 14:04:08 -0800
In cases like that, I say something like "returns a <whatever>, on
which you may use <some other function> to return TRUE if <condition
A> or FALSE if <condition B>."
I'm really not comfortable characterizing returns.
On Tue, Jan 5, 2016 at 11:51 AM, Monique Semp
<monique -dot- semp -at- earthlink -dot- net> wrote:
>> My default phrasing is "returns TRUE if ...."
>
>
> Ah, but the issue again is inconsistency. Some functions directly return
> TRUE/FALSE, but many others return a higher-level function-status-ok value,
> and return the condition's TRUE/FALSE through a function call parameter.
>
> So "returns..." won't work in these situations, and we're back to using
> "test if" or "determine whether", or some such thing.
>
> Certainly the ideal would be a coding standard that all engineers follow,
> and the standard would say how to name functions of this sort and how to
> return the value. But that's not likely to be followed even if implemented.
>
> -Monique
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Visit TechWhirl for the latest on content technology, content strategy and content development | http://techwhirl.com