• =?UTF-8?Q?=28Don=E2=80=99t_type_just_=28lrange_0=29_in_REPL=2C_or_i?= =

    From HenHanna@21:1/5 to All on Tue Jun 18 13:13:45 2024
    XPost: sci.lang, alt.usage.english

    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: ............

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From HenHanna@21:1/5 to HenHanna on Wed Jun 19 16:22:06 2024
    XPost: sci.lang, alt.usage.english

    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: fsxNet Usenet Gateway (21:1/5)
  • From Blue-Maned_Hawk@21:1/5 to HenHanna on Fri Jun 21 08:09:12 2024
    XPost: sci.lang, alt.usage.english

    HenHanna wrote:

    (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.

    Oh, i just thought you meant that it was weird that it would allow unterminating constructs in the REPL in the first place. Seeing as how
    the previous bits of the documentation already state that the evaluated
    result of (lrange 0) is an infinite list, i would assume that the ‘it’ in “it won't terminate” refers to the REPL (or rather that command in the REPL).



    --
    Blue-Maned_Hawk│shortens to Hawk│/blu.mɛin.dʰak/│he/him/his/himself/Mr. blue-maned_hawk.srht.site
    A great way to waste a morning and then ruin an afternoon!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From HenHanna@21:1/5 to All on Fri Jun 21 13:43:42 2024
    XPost: sci.lang, alt.usage.english

    On 6/21/2024 1:09 AM, Blue-Maned_Hawk wrote:
    HenHanna wrote:

    > (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.



    Oh, i just thought you meant that it was weird that it would allow unterminating constructs in the REPL in the first place. Seeing as how
    the previous bits of the documentation already state that the evaluated result of (lrange 0) is an infinite list, i would assume that the ‘it’ in “it won't terminate” refers to the REPL (or rather that command in the REPL).



    as a matter of English Usage...

    (Don’t type just (lrange 0) in REPL, or it won’t terminate!)

    i think this sounds too wordy and awkward.

    Moreover... my 2 alternatives are more informative.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)