few more comments

svn: r16776
This commit is contained in:
Eli Barzilay 2009-11-15 08:03:27 +00:00
parent f042eb1e4d
commit d3b5d8f71e
3 changed files with 10 additions and 1 deletions

View File

@ -54,7 +54,10 @@
(for/fold ([acc acc]) ([elem (in-list xs)])
(loop elem acc)))
(reverse (loop x null)))
;; Eli: This looks borderline too generic to be useful, also in the fact that
;; the documentation tends to explain things in terms of the implementation
;; (eg, the description of #:stop). In any case, you should definitely
;; rename it -- `find' is too common in different ways (see srfi-1 or cltl).
(define (find-first pred x
#:stop [stop #f]
@ -67,3 +70,4 @@
(if (procedure? default)
(default)
default)))
;; Eli: Note that this is documented "Like `find-first'".

View File

@ -81,3 +81,6 @@
;; fully transparent and wants all of the fields. #:false-on-opaque?
;; also lets this act as a predicate-plus (like member, assoc, etc)
;; for fully-transparent structs.
;; Eli: Your change to `#:on-opaque' looks good enough to me (and leaves room
;; for extension if needed). (BTW, the contract still has `?'.)

View File

@ -139,6 +139,8 @@
(define (convert x) (->atom x 'id-append))
(define sym (string->symbol (apply string-append (map convert args))))
(datum->syntax lctx sym src props cert))
;; Eli: Yes, that looks nice (with the same comments as above on the keyword
;; args). It makes more sense with the restriction on the format string.
|#
(define (restricted-format-string? fmt)