This looks like it still needs work or atyleast discussion. I am leaving this 
on review for now.


---

** [issues:#5475] Dedicated functions for negative predicate tests**

**Status:** Started
**Created:** Fri Feb 08, 2019 08:02 AM UTC by Valentin Villenave
**Last Updated:** Fri Feb 08, 2019 12:31 PM UTC
**Owner:** Valentin Villenave


Dedicated functions for negative predicate tests

Negative tests, e.g. (not (null? x)), are everywhere
in Scheme functions.  Having dedicated functions for
the most common ones may allow to make the code a bit
lighter (and possibly very slightly faster).

This patch includes tests for not-null?, not-zero?,
not-integer?, not-number?, not-symbol?, not-string?
and not-list?, as well as a C++-defined not-pair?
that may be used instead of the already-existing one
found in srfi-1.  (These are all available as ly:-prefixed
functions as well, which may help in case something
changes in upstream Guile.)

It is, however, a rather substantial addition (turning
some Scheme functions into somewhat of a non-standard
dialect, even though the syntax remains self-evident), and is
therefore open to discussion -- or outright rejection :-)

http://codereview.appspot.com/345190043


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/testlilyissues/admin/issues/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Testlilyissues-auto mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto
  • [Lilypond-... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto
    • [Lily... Auto mailings of changes to Lily Issues via Testlilyissues-auto

Reply via email to