syntax - F#: always "unexpected 'when' keyword" -


The VS2010 beta 2f # compiler always complains about the use of keywords by me, even when copy -Pip code is also used to work, for example, for example, I get this error when trying to execute a very trivial expression:

"Error FS0010 : Unexpected keyword 'when' in expression. Expected '-' 'or other token. "

  For i [1..50 in i & lt; 10 - & gt; I] --------------- ^^^^  

You want

  for [i in 1..50 if i  

The 'short' syntax was deleted with 'short time'.

See "Compact Sequence Expression" in that document.


Comments

Popular posts from this blog

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

iphone - How do I make a UIPickerView in a UIActionSheet -