Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

Doc comments

< >
Example from PureScript:
-- https://github.com/purescript/documentation/blob/master/language/Syntax.md -- | `bool` performs case analysis for the `Boolean` data type, like an `if` statement. bool :: forall a. Boolean -> a -> a -> a bool true x _ = x bool false _ x = x
Example from F#:
/// Adds 2 numbers let rec add x y = x + y
Example from C3:
/** * @param [in] foo "The foo value" * @return "the toal foo count" **/
Example from Jule:
// Documentation comment for a_function fn a_function() {}
Example from Speedie:
function Find (|string| pattern, |int| pos=0, |int|) description "Returns the position of pattern in self, starting from 'pos'. If not found, we return -1."

Languages with Doc comments include PureScript, F#, C3, Jule, Speedie

HTML of this page generated by Features.ts

View source

- Build the next great programming language About Acknowledgements Extensions Day 625 feedback@pldb.io