[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] and-let* syntax too permissive?
From: |
Michele La Monaca |
Subject: |
[Chicken-users] and-let* syntax too permissive? |
Date: |
Mon, 24 Jun 2013 11:34:02 +0200 |
This nonsense seems to be valid syntax:
#;1> (and-let* ((foobar 1 2 3)) foobar)
1
2 and 3 are not even evaluated as the following example demonstrates:
#;2> (and-let* ((foobar 1 (sleep 100))) foobar)
1
I think it's dangerous to leave it as it is. For example:
#;3> (and-let* (((or #f #t))) 1) ;; correct
1
#;4> (and-let* ((or #f #t)) 1) ;; WRONG! -> a stricter syntax
would catch this error
#f
Ciao,
Michele
- [Chicken-users] and-let* syntax too permissive?,
Michele La Monaca <=