Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> F#'s "lightweight" syntax is basically what I want

It's actually not that far off. For definitions that don't need to be self-referential you can use 'and':

    let things =
      let a = 1
      and b = 2
      and c = 3 in
      do_something a b c


Thank you! I knew this, but of course blanked on it when I came up with an Ocaml example.

There are a few other places I prefer F#'s syntax, but overall it's not the reason I'd pick F# over OCaml for a project. It's usually mostly about needing to integrate with other .NET code or wanting to leverage .NET libraries for specific use cases.

Can't lose either way - they're both a please to work with.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: