Not so nice features of F#

Negative Numbers

Given the following code it does not compile:
> let func = fun ()-> 3;;

val func : unit -> int
> func() -1;;

func() -1;;

stdin(5,1): error FS0003: This value is not a function and cannot be applied

Pretty annoying error message, as the problem is with the -1 part, not the func(). (You have to put a space between - and 1.)

I was not able to specify mutually dependent types with attributes on the second class.

No comments:

Post a Comment