[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Simple Program Won't Run
From: |
bill-auger |
Subject: |
Re: Simple Program Won't Run |
Date: |
Sat, 16 Jan 2021 16:31:44 -0500 |
it does conform to the spec though - the REPL syntax is exactly
the same as a static file - the dot is not a statement
terminator as with C-like languages - it is a statement
separator, which means it is optional, where there is only one
single statement - the same is true in a method definition - it
is the reason why you rarely see a dot after the final LOC of a
method definition - you will find that you can enter multiple
statements on a single line in the REPL, just the same as you
could in a static file; but they must be delimited by the
separator char
st> 2 print . 3 print
22
33