Version française
Home     About     Download     Resources     Contact us    
Browse thread
RE: What will the new syntax be like? (O'Caml + O'Labl)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@m...>
Subject: Re: What will the new syntax be like? (O'Caml + O'Labl)
let foo bar:a ?qux:c{=10} : unit = ...

	How do I curry a function with a default argument?
Does

	foo aa

mean

	foo aa 10 (* type unit *)

or is it a function with type int -> unit?

-- 
John Skaller, mailto:skaller@maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia
homepage: http://www.maxtal.com.au/~skaller
voice: 61-2-9660-0850