Comments

In the F# language, we have two types of comments for a single line and for multiple lines. This is the same as C#. The following are the two types of comments:

  • A single-line comment which starts with the // symbol.

               Example: // returns an integer exit code

  • A multi-line comment which starts with (* and ends with *).

               Example:  (*Learn more about F# at http://fsharp.org *)

Get .NET Core 2.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.