Deutsch   English   Français   Italiano  
<vdf546$2cn51$7@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: TeX and Pascal [was Re: The joy of FORTRAN]
Date: Mon, 30 Sep 2024 21:27:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <vdf546$2cn51$7@dont-email.me>
References: <pan$96411$d204da43$cc34bb91$1fe98651@linux.rocks>
	<5mqdnZuGq4lgwm_7nZ2dnZfqnPSdnZ2d@earthlink.com>
	<vcub5c$36h63$1@dont-email.me> <1r0e6u9.1tubjrt1kapeluN%snipeco.2@gmail.com>
	<vcuib9$37rge$5@dont-email.me> <vcvuhh$3hroa$2@dont-email.me>
	<llhieuF8ej2U2@mid.individual.net> <20240925083451.00003205@gmail.com>
	<Pascal-20240925164718@ram.dialup.fu-berlin.de>
	<mdd4j63pmo1.fsf_-_@panix5.panix.com>
	<oJ-cnQSrLZDYdGX7nZ2dnZfqnPWdnZ2d@earthlink.com>
	<vdatb6$1l4ch$8@dont-email.me> <vdauah$1lq1u$1@dont-email.me>
	<20240930110933.00002ec1@gmail.com>
	<appeal-20240930203239@ram.dialup.fu-berlin.de>
	<20240930135208.00004170@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Sep 2024 23:27:34 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a1a02b051aaecb67c07f3c0a04f3a680";
	logging-data="2514081"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+hbJgk9ZkO/lxo0sU1FOIt"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:ccyvmtyrnU1efdaIEuRtjbgHnuE=
Bytes: 3125

On Mon, 30 Sep 2024 13:52:08 -0700, John Ames wrote:

> With ST, it's "objects all the way down" (at least 'til you hit that
> magic ignore-the-man-behind-the-curtain barrier that every HLL has at
> some point, which is still admirably low compared to most "friendly"
> languages,) and the underlying design makes it possible to examine and
> modify even a substantial portion of the runtime itself.
> 
> This gives it a kind of self-similar quality that reminds me of Lisp -
> nothing is magic, even the "magic" bits (the primitives generally have
> a "reference" version in pure ST, when possible,) and everything's made
> from the same kind of stuff. That's what I find appealing about it; I
> haven't worked with it enough to say whether it's truly *useful,* but
> in its own way it *is* beautiful.

I have had only minimal exposure to Smalltalk, and I can certainly 
appreciate aspects of its design.

However, I had a great deal of trouble finding any kind of description of 
its actual syntax. I think the original Smalltalk systems were heavily 
oriented towards entering pieces of code directly into the GUI 
environment, with no notion of code contained in actual text files.

Here’s an example of a simple function-returning-a-function that 
demonstrates lexical binding, and also shows that not everything has to be 
a class:

    f := [:n||i| i := n. [i := i + 1. i printNl]].
    f1 := f value: 5.
    f2 := f value: 2.

    f1 value.
    f2 value.
    f1 value.
    f2 value.

Output:

    6
    3
    7
    4