Deutsch   English   Français   Italiano  
<c6c92b39d444dace4a592ce69df05532@www.novabbs.com>

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

Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: zbigniew2011@gmail.com (LIT)
Newsgroups: comp.lang.forth
Subject: Re: Stack vs stackless operation
Date: Tue, 25 Feb 2025 20:57:28 +0000
Organization: novaBBS
Message-ID: <c6c92b39d444dace4a592ce69df05532@www.novabbs.com>
References: <591e7bf58ebb1f90bd34fba20c730b83@www.novabbs.com> <nnd$51bcad46$1bd3e05e@1d966d400ed1e87a>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
	logging-data="1771923"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="ovTHZ/VLht/KDF1nKqB7PmGhjiyfUdv/DKd8kGKFjRY";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$Cv6emQAeculGgnBvse0dRelsiVK4WkyHopjlnD.lPmggKwSXx9oJi
X-Rslight-Posting-User: 8e58c9b6d1da98b6162b84d03d2307a6516add15
Bytes: 1722
Lines: 16

>  > I wonder: wouldn't it be useful to have stackless basic
>  > arith operations? I mean instead of fetching the values
>  > first and putting them on the stack, then doing something,
>  > and in the end storing the result somewhere wouldn't it
>  > be practical to use directly the variables?
> No. Because you should minimize the use of variables. So if you're using
> THREE variables, you're definitely doing something VERY WRONG.
>
> If you wanna write Forth, write Forth. If you wanna write C, write C.
> If you can't handle a stack, you're definitely a C programmer. It's very
> simple..

Forgive me for being contrary, but IMHO use of locals
is much more C-ish than the use of "as many as" three
(OMG!) variables in a single program. ;)

--