3 ms·
Functions have several functions. * Functions can be like new words in a language. If there is new concept that is used frequently, it should be named or abbre
by nabla9 9y ago
Functions have several functions.
* Functions can be like new words in a language. If there is new concept that is used frequently, it should be named or abbreviated and maybe listed in a index.
* Functions can sometimes be like chapters or sections. They are entry points listed in table of contents (API description)
* Functions are sometimes used like paragraphs. Used only once to make very long section easier to read. Not really functions. Way to structure text.
For paragraph use we might want blocks of code with function like interface. Code editors could collapse and expand them.
let a, b, c = 100
let p = 0
paragraph "Intro to foo" (constant a, modify p) {
let k, l, m, ...
} assert (p < a)