You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace custom helper functions with baked in fable utils. To be honest, i am confused as i was sure this returned an error, but the following code runs for me with fable, maybe we must update fable dependency dotnet tool update fable and then it will run correctly?
moduleTestInt =letactual= System.Int32.TryParse("42")letparsable,v = actual
printfn "%b"(parsable =true)
printfn "%b"(v =42)moduleTestFloat =/// use System.Double.TryParse with CultureInvariantletCulture= System.Globalization.CultureInfo.InvariantCulture
letactual= System.Double.TryParse("42.69", System.Globalization.NumberStyles.Float, Culture)letparsable,v = actual
printfn "%b"(parsable =true)
printfn "%b"(v =42.69)
printfn "%A" v
moduleTestBool =letactual= System.Boolean.TryParse("true")// fails for pythonletparsable,v = actual
printfn "%b"(parsable =true)
printfn "%b"(v =true)
The text was updated successfully, but these errors were encountered:
Replace custom helper functions with baked in fable utils. To be honest, i am confused as i was sure this returned an error, but the following code runs for me with fable, maybe we must update fable dependency
dotnet tool update fable
and then it will run correctly?The text was updated successfully, but these errors were encountered: