-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification on Time.from*
functions' behavior
#35
Comments
I do not remember the rationale for that language, but I suspect that the intention was focused on overflowing the internal representation (rather than underflow). It might also be useful to add a constant val tick : time to the interface that is minimum representable unit of time. |
See proposal 2024-001 (Clarification of Time module operations) for the companion proposal. |
The first bullet under the Discussion subheading is:
This value is unrelated to the underlying operating systems of smallest time quanta.
This sentence needs to be edited to make sense.
Dave
On Nov 18, 2024, at 10:13 AM, John Reppy ***@***.***> wrote:
See proposal 2024-001 (Clarification of Time module operations) <https://github.com/SMLFamily/BasisLibrary/wiki/2024-001-Clarification-of-Time-module-operations> for the companion proposal.
—
Reply to this email directly, view it on GitHub <#35 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAGXNPO2TCN2RHLOKATDZQL2BIU4JAVCNFSM6AAAAABSAILKESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBTG44DENJVGY>.
You are receiving this because you are subscribed to this thread.
David MacQueen
***@***.***
|
Thanks for pointing that out. I've removed the word "of", which should make it understandable. |
Yes, that and the apostrophe s make it ok.
Dave
On Nov 19, 2024, at 11:23 AM, John Reppy ***@***.***> wrote:
Thanks for pointing that out. I've removed the word "of", which should make it understandable.
—
Reply to this email directly, view it on GitHub <#35 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAGXNPJYEEE23F3PSMZDGGD2BOFZ7AVCNFSM6AAAAABSAILKESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBWGU3DKMJSHE>.
You are receiving this because you commented.
David MacQueen
***@***.***
|
I made the edits discussed yesterday to align the synopsis with the discussion sections |
The documentation for
Time.fromSeconds
,Time.fromMilliseconds
,Time.fromMicroseconds
, andTime.fromNanoseconds
is (emphasis mine):The wording here makes it seem like an implementation should raise the
Time
exception when the time is too precise for the implementation, but this does not seem to be implemented in practice.Proposal:
Make clear what the expected behaviors of the
Time
conversion functions are.This could be done by adding the sentence from the
Time.fromReal
function:The text was updated successfully, but these errors were encountered: