From: Richard Jones <rich@annexia.org>
Cc: caml-list <caml-list@pauillac.inria.fr>
Subject: Re: [Caml-list] laziness
Date: Tue, 7 Sep 2004 09:31:14 +0100 [thread overview]
Message-ID: <20040907083114.GA14461@annexia.org> (raw)
In-Reply-To: <413CE639.5090103@albedo.net>
[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]
On Mon, Sep 06, 2004 at 06:35:37PM -0400, Hartmann Schaffer wrote:
> Richard Jones wrote:
>
> >...
> >
> >One thing that worries me about laziness.
> >
> >Doesn't laziness often indicate a bug in the code? ie. You've
> >written an expression in the program, but that expression is never
> >used. This is dead code, right? Hence a bug?
> >
> >
>
> well, programs supposedly run against quite a few different data sets,
> and depending on the particular data set, some code segments might never
> be executed
I was really talking about code that would never be executed under any
inputs.
The example was given of:
let x = ... in let y = ... in x
Under lazy evaluation, "y" is never evaluated, but it's still dead code.
Rich.
--
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
If I have not seen as far as others, it is because I have been
standing in the footprints of giants. -- from Usenet
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-09-07 8:31 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-05 1:07 Jason Smith
2004-09-05 5:46 ` skaller
2004-09-06 0:57 ` Richard Jones
2004-09-06 6:11 ` Nicolas Cannasse
2004-09-06 8:24 ` skaller
2004-09-06 8:44 ` Erik de Castro Lopo
2004-09-06 12:55 ` Jon Harrop
2004-09-06 16:21 ` William Lovas
2004-09-06 22:35 ` Hartmann Schaffer
2004-09-07 8:31 ` Richard Jones [this message]
2004-09-07 8:37 ` Nicolas Cannasse
-- strict thread matches above, loose matches on Subject: below --
2004-09-06 12:17 Jason Smith
2004-09-06 17:00 ` skaller
2004-09-06 9:16 Jason Smith
2004-09-06 9:07 Jason Smith
2004-09-06 10:18 ` skaller
2004-09-04 6:30 skaller
2004-09-04 8:40 ` Marcin 'Qrczak' Kowalczyk
2004-09-04 11:21 ` skaller
2004-09-04 11:49 ` Richard Jones
2004-09-04 20:40 ` Hartmann Schaffer
2004-09-05 10:50 ` Jon Harrop
2004-09-05 14:07 ` skaller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040907083114.GA14461@annexia.org \
--to=rich@annexia.org \
--cc=caml-list@pauillac.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox