Home » F# Code Formatting guidelines

F# Code Formatting guidelines

by Online Tutorials Library

F# Code Formatting Guidelines

This topic summarizes code indentation guidelines in F#. F# language is sensitive to line breaks and indentation. It is not just a readability issue, coding standardization issue to format your code correctly. You must format your code correctly to compile correctly.


F# Code Formatting Example

Output:

loop starts  2  4  6  8  10  loop exits  

When indentation is required, you must use spaces, not tabs. At least one space is required. You can create your own coding standards to specify the number of spaces to use for indentation.

You may also like