By Petr at June 27, 2010 01:58
Filed Under:
It was pretty cool. Steffen Forkmann spoke from Germany for groups here in Boston and New Orleans (at TechEd 2010). Looks like F# is almost ideal for creating DSLs.
Discovered new F# feature which allows create functions like this:
let ``function name with spaces и всяческим уникодом`` num = printfn "Output from the function %d" num
Just wrap the arbitrary string by double ticks `` – and it will be perfectly legal F# identifier!
Fsi output:
val ( function name with spaces и всяческим уникодом ) : int -> unit
> ``function name with spaces и всяческим уникодом`` 45;;
Output from the function 45
val it : unit = ()
>
4dff1b9a-2f68-4446-a20a-b8a6cea0c283|0|.0