From: "Nicolás Ojeda Bär" <firstname.lastname@example.org> To: "email@example.com" <firstname.lastname@example.org>, Arnaud Delobelle <email@example.com> Subject: RE: [Caml-list] Learning ocaml Date: Wed, 29 Dec 2021 17:52:03 +0000 [thread overview] Message-ID: <PAZP264MB2848ED1EE3BD573F978582B7C3449@PAZP264MB2848.FRAP264.PROD.OUTLOOK.COM> (raw) In-Reply-To: <CAJ6cK1akv=w7474WOKRd6T8ocejz7MYap40_OqyOK67_Yw6GmA@mail.gmail.com> [-- Attachment #1: Type: text/plain, Size: 1686 bytes --] Hello Arnaud, > Do you have any good suggestions? I think the consensus is that one should write pure code by default, and only switch to imperative style when there is a good reason for it (eg an algorithm or data structure that is harder to express in pure style). Pure code is easier to read and reason about in most cases. > What would be an appropriate way for me to request feedback? I would recommend you head over to https://discuss.ocaml.org/ to get feedback to all your OCaml-related questions. Cheers, Nicolas ________________________________ De : firstname.lastname@example.org <email@example.com> de la part de Arnaud Delobelle <firstname.lastname@example.org> Envoyé : mercredi 29 décembre 2021 17:09 À : email@example.com <firstname.lastname@example.org> Objet : [Caml-list] Learning ocaml CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. Hello! In 1993 while doing a maths degree at Paris 7 university I remember doing a project in a language called Caml-Light (implementing a unification algorithm iirc). I haven't done any Caml since but this Christmas I decided to give Ocaml a go (just for the fun of it). As I'm learning I am wondering how to write idiomatic OCaml - as an example, as it has both functional and imperative syntax, I'm finding it hard to decide what is most natural in some situations. Do you have any good suggestions? My favourite way to learn is by doing and getting feedback. What would be an appropriate way for me to request feedback? It would be for fairly simple code. TIA Arnaud Delobelle [-- Attachment #2: Type: text/html, Size: 6610 bytes --]
next prev parent reply other threads:[~2021-12-29 17:52 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-29 16:09 Arnaud Delobelle 2021-12-29 17:52 ` Nicolás Ojeda Bär [this message] -- strict thread matches above, loose matches on Subject: below -- 2014-10-29 13:49 [Caml-list] Learning OCaml Ramu Iyer
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=PAZP264MB2848ED1EE3BD573F978582B7C3449@PAZP264MB2848.FRAP264.PROD.OUTLOOK.COM \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --subject='RE: [Caml-list] Learning ocaml' \ /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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).