From: "Maxime Dénès" <mail@maximedenes.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] type-safe printf
Date: Tue, 13 Sep 2016 17:36:17 +0200 [thread overview]
Message-ID: <dfa627a4-d72d-e21e-0664-87f1f8a68129@maximedenes.fr> (raw)
In-Reply-To: <dfc07afd-9227-137e-78c2-c37442b4606a@gmail.com>
Hello,
Some ideas are described here:
https://ocaml.org/meetings/ocaml/2013/proposals/formats-as-gadts.pdf
Maxime.
On 09/13/16 17:25, Mario Pereira wrote:
> Hi,
>
> You can do it using GADTs. However, I am not sure if this is explained
> somewhere.
>
> Le 13/09/2016 à 17:12, Андрей Бергман a écrit :
>> Hello,
>>
>> is there a good article or just short explanation how compile-type
>> checking of Printf arguments works?
>>
>> Does it require special compiler support like in C++
>> compilers/analyzers, or one can somehow do the trick of parsing string
>> literal using Ocaml language itself? (actually latter does not look
>> possible to me)
>>
>> Thanks,
>> Andrey.
>>
>
>
next prev parent reply other threads:[~2016-09-13 15:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-13 15:12 Андрей Бергман
2016-09-13 15:25 ` Mario Pereira
2016-09-13 15:36 ` Maxime Dénès [this message]
2016-09-13 15:31 ` Kakadu
2016-09-13 15:40 ` Daniel Bünzli
2016-09-14 11:19 ` Oleg
2016-09-13 15:38 ` David Allsopp
2016-09-13 17:54 ` Андрей Бергман
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=dfa627a4-d72d-e21e-0664-87f1f8a68129@maximedenes.fr \
--to=mail@maximedenes.fr \
--cc=caml-list@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