Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

print_any for F# 2.0

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.

like image 900
Chaitanya Avatar asked Apr 23 '10 07:04

Chaitanya


1 Answers

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.

like image 186
Robert Avatar answered Sep 17 '22 23:09

Robert