From: Damien Doligez <damien.doligez@inria.fr>
To: Caml Mailing List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Re: large hash tables
Date: Thu, 21 Feb 2008 14:54:17 +0100 [thread overview]
Message-ID: <055012C9-F9CC-4252-8520-64860F8F388D@inria.fr> (raw)
In-Reply-To: <4a051d930802200802w6c0e9a0ayde1000f1b4584753@mail.gmail.com>
On 2008-02-20, at 17:02, Christopher L Conway wrote:
>> let newList = List.rev_append [newElement] oldList in
>
> This is what is known as a "functional anti-pattern" [1].
Not really. This is just a rather long-winded way to write
let newList = newElement :: oldList in
but it doesn't take much more time or memory to execute.
-- Damien
next prev parent reply other threads:[~2008-02-21 13:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.XXbywsQknpl7bhlesWN8vFLM58c@ifi.uio.no>
[not found] ` <55e81f00-5ef7-4946-9272-05595299e114@41g2000hsc.googlegroups.com>
2008-02-20 5:18 ` John Caml
2008-02-20 6:11 ` [Caml-list] " Francois Rouaix
2008-02-20 8:37 ` David Allsopp
2008-02-20 8:44 ` Alain Frisch
2008-02-20 13:37 ` Damien Doligez
2008-02-20 14:37 ` Oliver Bandel
2008-02-20 16:02 ` Christopher L Conway
2008-02-21 13:54 ` Damien Doligez [this message]
2008-02-21 16:40 ` Christopher L Conway
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=055012C9-F9CC-4252-8520-64860F8F388D@inria.fr \
--to=damien.doligez@inria.fr \
--cc=caml-list@yquem.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