Re: tai confusion

From: Paul Jarc <prj_at_case.edu>
Date: Thu, 08 Jan 2015 00:33:01 -0500

Laurent Bercot <ska-skaware_at_skarnet.org> wrote:
> the tai_from_* namespace is starting to get a bit crowded with two
> slightly different meanings.

My main suggestion there would be that the functions that deal with
tai[n]_t structures not containing genuine TAI values will probably
cause more confusion than they're worth, and don't need to be exposed
in the documented API. Bury them with an extra ska_ prefix to mark
them for internal use only. Then I want to say that
tai[n]_from_{timespec,timeval,time_t} (and the reverse) would be
available for the value-adjusting conversion functions, but you
probably shouldn't reuse the same name for a different function,
especially when the argument types are the same, on the off chance
that anyone is actually using it and may not notice the change.


paul
Received on Thu Jan 08 2015 - 05:33:01 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC