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

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -