[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19469: minor nit: (sxml xpath) node-typeof?
From: |
Matt Wette |
Subject: |
bug#19469: minor nit: (sxml xpath) node-typeof? |
Date: |
Mon, 29 Dec 2014 17:57:35 -0800 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#19469: minor nit: (sxml xpath) node-typeof?,
Matt Wette <=