-
Notifications
You must be signed in to change notification settings - Fork 831
Closed
Labels
Feature ImprovementTheme-Simple-F#A cross-community initiative called "Simple F#", keeping people in the sweet spot of the language.A cross-community initiative called "Simple F#", keeping people in the sweet spot of the language.good first issue
Milestone
Description
What
Running the code:
[<EntryPoint>]
let main argv =
printfn "Hello, world!"
0in FSI produces the output
val main : argv:string [] -> int
but doesn't actually invoke the function.
Why
Some beginners may be unsure about how F# scripts and FSI work and may run some code from an application which has an EntryPoint into FSI. This happened recently to a former colleague.
How
Using the EntryPoint attribute in FSI should produce a compiler warning indicating that it won't be invoked automatically.
Metadata
Metadata
Assignees
Labels
Feature ImprovementTheme-Simple-F#A cross-community initiative called "Simple F#", keeping people in the sweet spot of the language.A cross-community initiative called "Simple F#", keeping people in the sweet spot of the language.good first issue
Type
Projects
Status
Done