[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Additions in event-listener.ly (issue 8165043)
From: |
dak |
Subject: |
Re: Additions in event-listener.ly (issue 8165043) |
Date: |
Fri, 29 Mar 2013 19:23:49 +0000 |
https://codereview.appspot.com/8165043/diff/2001/ly/event-listener.ly
File ly/event-listener.ly (right):
https://codereview.appspot.com/8165043/diff/2001/ly/event-listener.ly#newcode69
ly/event-listener.ly:69: (eq? 0 (ly:moment-grace-numerator moment))
On 2013/03/29 19:21:31, janek wrote:
Out of curiosity (my knowledge about Scheme is poor): what's the
difference
between 'zero?' and 'eq? 0' ?
Is 'eq? 0'? better in some way?
eq? 0 will not complain if the compared value is not a number. It also
is undefined code since (eq? 0 0) is not guaranteed by the Scheme
standard. Better use zero? here.
https://codereview.appspot.com/8165043/