views:

149

answers:

1

Hi, I am upgrading an old version 1.0 F# project to 2.0 using visual studio 2010. So many changes.

I can't seem to find the print_any command that was littered all over the place in the old books and samples.

I have installed powerpack but can't find it there either.

Any idea where i can find this command.

PS: I know I can easily implement it myself but was curious where this is now.

+6  A: 

The libraries for F# 2.0 underwent a redesign and clean up. I think think print_any was removed for two specific reasons:

  • It was a goal to removed all of the under scores from F# function names (accept for the under scores in OCaml compatibility library, which is shipped with the powerpack).
  • Reduce the number of similar functions, to reduce the api surface area and to remove some of the problems of having two ways of achieving the same thing.

So, since it's easy to replace print_any with printfn "%A" it was removed.

Robert