Browse thread
[Caml-list] failwith, raise and type inference
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Issac Trotts <ijtrotts@u...> |
| Subject: | Re: [Caml-list] failwith, raise and type inference |
> This doesn't look very much related to the original thread. > But you just have to find an operator with the right associativity. > > let (@<) f x = f x ;; > print_string @< String.capitalize @< "foo" ^ "bar" ;; > > Since the first character decides the associativity, you might also > choose @@, @>, or anything you like. ^^, ^@, ... would have the same > associativity and precedence also. > Look at section 6.7 of the manual for infix operators and their > precedences. Why not just use parens? -- Issac Trotts http://mallorn.ucdavis.edu/~ijtrotts (w) 530-757-8789 ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners