Facebook
From newcomer, 7 Years ago, written in OCaml (Objective Caml).
Embed
Download Paste or View Raw
Hits: 405
  1. f 4 5 1 2;; (*works fine, treats labelled arguments as positional*)
  2. f ~m:5 ~l:4 1 2;; (*works fine, that's the whole purpose of labelled arguments*)
  3. f ~m:5 1 2 ~l:4;; (*works fine, that's the whole purpose of labelled arguments*)
  4. (*f ~m:5 4 1 2;;*) (*doesn't work!*)
  5. let g = f ~m:5;;
  6. g 4 1 2;; (*works fine,treats labelled arguments as positional*)

Replies to confusing_labelled_arguments rss

Title Name Language When
Re: confusing_labelled_arguments newcomer ocaml 7 Years ago.