Skip to content

Conversation

@jackmath5261-bit
Copy link
Contributor

No description provided.

@jackmath5261-bit jackmath5261-bit merged commit 60db3af into main Feb 12, 2026
4 checks passed
@jackmath5261-bit jackmath5261-bit deleted the jie/210_14/compare branch February 12, 2026 00:33
Comment on lines +154 to +160
(define (priv:check-same-time-type time1 time2)
(unless (and (time? time1) (time? time2))
(error 'wrong-type-arg "time comparison: time1 and time2 must be time objects"
(list time1 time2)))
(unless (eq? (time-type time1) (time-type time2))
(error 'wrong-type-arg "time comparison: time types must match"
(list (time-type time1) (time-type time2)))))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

写了这个的话,其他函数有类似需要检查的,也可以换成用这个

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之后的 PR 里这么做就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants