home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   sci.lang      Natural languages, communication, etc      297,461 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 295,848 of 297,461   
   HenHanna to HenHanna   
   =?UTF-8?B?UmU6IChEb27igJl0IHR5cGUganVzdC   
   19 Jun 24 16:22:06   
   
   XPost: alt.usage.english, comp.lang.lisp   
   From: HenHanna@devnull.tb   
      
   On 6/18/2024 1:13 PM, HenHanna wrote:   
   >   
   > from the Gauche manual (a kind of Lisp)   
   >   
   > lrange   start   :optional   end   step   
   >   
   >       Creates a lazy sequence of numbers starting from start,   
   >       increasing by step (default 1), to the maximum value that   
   >       doesn’t exceed end.    The default of end is +inf.0, so it   
   >       creates an infinite list.   
   >       (Don’t type just (lrange 0) in REPL, or it won’t terminate!)   
   >       If any of start or step is inexact, the resulting sequence has   
   >       inexact numbers.   
   >   
   >   
   > (Don’t type just (lrange 0) in REPL, or it won’t terminate!)   
   >   
   >                <-- This sounds (more than) slightly odd.  Do   
   you agree?   
   >   
   >   
   > _______________   
   >  > The default of [end] is +inf.0, so it creates an infinite list.   
   >   
   > better as:   
   >   
   >  > The default for [end] is +inf.0, specifying an infinite list.   
   >   
   >   
   > _______________   
   >  > If any of start or step is inexact,   
   >   
   > better as:  ............   
      
      
      
      
    > (Don’t type just (lrange 0) in REPL, or it won’t terminate!)   
    >   
                       <-- This sounds  slightly odd.  Do you agree?   
      
      
   There would be 2 kinds of Non-termination.   
      
               1. If you enter (lrange 0) into REPL, it will hang.   
      
               2. Entering (lrange 0) in REPL would print an infinite list.   
      
   i can't guess which is the case for Gauche.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca