why does getting started with F# has errors in the let xx morifiable example?

Proposed Answer why does getting started with F# has errors in the let xx morifiable example?

  • Monday, January 28, 2013 9:15 PM
     
     

    From this page:

    http://www.tryfsharp.org/Learn/getting-started#bindings-values

    the example for let xxx modifiable produces an error in execution

    let mutable modifiable = "original value"modifiable <- "new value"

    stdin(3,26): error FS0374: Invalid expression on left of assignment

    What's the syntax of the example really supposed to be?


    Drew Harrison Microwave Metrology Master Tech

All Replies

  • Monday, January 28, 2013 10:15 PM
     
     Proposed Answer Has Code

    Did you miss the newline?

    let mutable modifiable = "original value"
    modifiable <- "new value"

    • Proposed As Answer by Kalnemi Tuesday, January 29, 2013 6:52 AM
    •  
  • Thursday, January 31, 2013 9:25 AM
     
     Proposed Answer
    Mmmh, , as Paulo Santos wrote, you must go to newline. The problem is solved ?  

    Développeur F#

    • Proposed As Answer by DisBme Friday, February 01, 2013 9:30 AM
    •