I think it depends on what you mean by "arbitrary" :) It's certainly not intuitive.

The reason for this behavior is almost certainly .NET interop - many existing types (in the Base Class Library and in 3rd party libraries) define static op_Addition methods, and since the CLR doesn't inherently support the concept of curried functions, these all take multiple arguments. The way that F#'s operators are set up, these types just work with the addition operator.

By on 7/25/2010 8:21 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper