Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: A Brief Loo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3955 of 4050
Post > Topic >>

Re: A Brief Look at History

by Bruce McFarling <agila61@[EMAIL PROTECTED] > Mar 22, 2008 at 12:26 PM

On Mar 22, 2:13 pm, William James <w_a_x_...@[EMAIL PROTECTED]
> wrote:
> We hear that locals discourage factoring.  The proof?
> Newbies use locals and don't factor.

No, the proof is that when you use locals, it makes it
harder to factor. Something that makes an activity
easier, encourages it, something that makes an activity
harder, discourages it.

Where things go awry is when things are placed through
the "take everything to ridiculous extremes" filter and
people read "locals discourage factoring" as:

* "locals make it impossible to factor", which is a bald-
faced lie, since C relies heavily on locals, and it
is possible to write well-factored C code ... not
always encouraged, and oft-times with a runtime
penalty, but possible.

* "locals are antithetical to forth" which is silly ...
the argument goes that locals introduce syntactic
restrictions on how we program, and the point of Forth
is the opportunities that arise from a substantial
freedom from syntax ... but if the second premise is
correct, it contradicts the supposed conclusion,
since the point is how little is "antithetical" to Forth.

Locals introduce a capacity and an inflexibility, and like
any other construct, the question is when the benefit of
the capacity justifies working with the inflexibility.
Certainly when implementing Forth wrappers for C library
calls, they almost always pay their own way, and the same
with quickly and correctly prototyping published
mathematical expressions. For me, that's enough to
justify having them.




 1 Posts in Topic:
Re: A Brief Look at History
Bruce McFarling <agila  2008-03-22 12:26:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon May 12 2:50:14 CDT 2008.