Sujet : Re: WM and end segments...
De : invalid (at) *nospam* example.invalid (Moebius)
Groupes : sci.mathDate : 23. Jul 2024, 21:56:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v7p5d4$1bm3d$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Mozilla Thunderbird
Am 23.07.2024 um 22:28 schrieb Chris M. Thomasson:
On 7/23/2024 1:17 PM, Moebius wrote:
Am 23.07.2024 um 21:57 schrieb Chris M. Thomasson:
On 7/23/2024 9:49 AM, WM wrote:
>
"LLLLLLLL....." is a finite expression,
>
WM is right here.
>
"LLLLLLLL....." is an infinite expression, indeed....
>
Nope.
>
Hint: print(len("LLLLLLLL....."))
>
But by convention (we think -except WM that is- that) "LLLLLLLL....." DENOTES (refers to) an infinite sequence of "L"s. :-P
Well, I was thinking of an endless sequence of L's
Yes, *I JUST SAID THAT*!
not a literal string.
Sure, but THE EXPRESSION (above) is a STRING-LITERAL, isn't it?
A programmer really should know that! ;-P
So if WM claims that "LLLLLLLL....." is a finite expression, he's right.
A parser can interpret [...]
Whatever your parser may be able to do: What he's DEALING with (from source code or input) is FINITE EXPRESSION consisting of 13 characters.
Please don't do the Mückenheim, here. Ok?
I'm quite sure some CAS will be able to interprete (another finite expression) correctly:
(L, L, L, ...)
That's how we usually write (a term referring to) an infinite sequence (where all terms are just "L"), in math.
So if you are thinking of a numb ahem "endless sequence of L's", just write
(L, L, L, ...) .
(when referring to it):-P
Of course, in certain contexts you may abbreviate such expression (for simplicity, and just write
LLL...
instead.
But (then) still LLL... is an infinite sequence, and "LLL..." is a finite expression (consisting of 6 characters) which DENOTES this sequence. :-P
Hint: Paris is a town, but "Paris" is a name consisting of 5 characters (denoting the town Paris).