Subject: minor nit: (sxml xpath) node-typeof?
From: Matt Wette <[email-masked]>
To: [email-masked]
Date: Mon, 29 Dec 2014 17:57:35 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

In guile-2.0.11 the following appears in sxml/xpath.scm:

(define (node-typeof? crit)
  (lambda (node)
    (case crit
      ((*) (and (pair? node) (not (memq (car node) '(@ *PI*)))))
      ((*any*) #t)
      ((*text*) (string? node))
      (else
       (and (pair? node) (eq? crit (car node))))
)))

Would it be more efficient to swap the "(lambda (node)" and "(case crit" forms?

Matt