unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#26163: time-difference doesn't detect error of differing time types
@ 2017-03-18 22:23 Zefram
  2017-04-19 18:12 ` Zefram
  2018-10-21 23:45 ` Mark H Weaver
  0 siblings, 2 replies; 3+ messages in thread
From: Zefram @ 2017-03-18 22:23 UTC (permalink / raw)
  To: 26163

scheme@(guile-user)> (use-modules (srfi srfi-19))
scheme@(guile-user)> (time-difference (make-time time-tai 0 1) (make-time time-utc 0 1))
$1 = #<time type: time-duration nanosecond: 0 second: 0>

SRFI-19 is explicit that it "is an error" if the arguments to
time-difference are of different time types, and correspondingly the
Guile documentation says the arguments "must be" of the same type.
It would be very easy for time-difference to detect and signal this error.
It's not absolutely a bug that it currently doesn't, but it would be a
useful improvement if it did.

-zefram





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-21 23:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-18 22:23 bug#26163: time-difference doesn't detect error of differing time types Zefram
2017-04-19 18:12 ` Zefram
2018-10-21 23:45 ` Mark H Weaver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).