Documenting your code

Documenting your code is a good practice to get used to. Do you remember details about code you worked on some weeks ago? Then imagine yourself looking at the code you worked on several years ago. This is where documentation comes in. Just some hints about the logic will be sufficient for you and your colleges to grasp the main concepts behind the logic.

(*
This is a comment on multiple lines
*)

/// Single line comment, supporting XML-tags

// This is also a single line comment

Get F# for Quantitative Finance 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.