bugDenemo - Bugs: bug #29825, Many scripts avoid (if expr for...

 
 

bug #29825: Many scripts avoid (if expr for expr not boolean

Submitted by:  Richard Shann <rshann>
Submitted on:  Sat 08 May 2010 09:32:47 AM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 08 May 2010 09:32:47 AM UTC, original submission:

In the guile docs there is the statement

“true” means any value at all except #f

so the many occurrences of (boolean? expr) in our scripts are unnecessarily obscure, as what they are trying to test is if the returned value is not a string but #f

This infelicitous construction will be copied by others if we do not nip it in the bud. (Reading Nils' paste code triggered the detection of this, thank you Nils).

Richard Shann <rshann>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rshann (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3