#236: document failures with list.hd on an empty list.
----------------------------+-----------------------------------------------
  Reporter:  toots          |       Owner:  admin    
      Type:  Documentation  |      Status:  new      
  Priority:  1              |   Milestone:  0.9.0    
 Component:  Liquidsoap     |     Version:  0.9.0+svn
Resolution:                 |    Keywords:           
       Mac:  1              |       Linux:  1        
    Netbsd:  1              |       Other:  1        
   Freebsd:  1              |  
----------------------------+-----------------------------------------------
Comment (by mrpingouin):

 Just to clarify: you don't need to protect against errors. List.hd()
 always succeeds, and returns "" when there is no head. That's why it's not
 polymorphic but only ([string])->string. We could emphasize this in the
 doc of list.hd() maybe -- but would people read it?

-- 
Ticket URL: <http://savonet.rastageeks.org/ticket/236#comment:1>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac

Reply via email to