From: Ville-Pertti Keinonen <will@exomi.com>
To: Jon Harrop <jon@ffconsultancy.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Shortest hanging
Date: Thu, 08 Sep 2005 12:53:48 +0300 [thread overview]
Message-ID: <1126173228.732.45.camel@acerf.exomi.com> (raw)
In-Reply-To: <200509080450.50695.jon@ffconsultancy.com>
On Thu, 2005-09-08 at 04:50 +0100, Jon Harrop wrote:
> Whilst trying to find the shortest OCaml program that hangs, I came up with:
>
> let rec f() = f() in f();;
>
> and:
>
> let rec x = 1::x in x=x;;
Are you counting characters or tokens? The following is shorter either
way:
while true do () done;;
With -rectypes you can also do:
let f f = f f in f f;;
Which is shorter in characters but has more tokens.
prev parent reply other threads:[~2005-09-08 9:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-08 3:50 Jon Harrop
2005-09-08 9:53 ` Ville-Pertti Keinonen [this message]
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=1126173228.732.45.camel@acerf.exomi.com \
--to=will@exomi.com \
--cc=caml-list@inria.fr \
--cc=jon@ffconsultancy.com \
/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