Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 508 Bytes

function-definitions-expanding-functions.md

File metadata and controls

24 lines (15 loc) · 508 Bytes

Function Definitions / Expanding Functions

Definition convention

  • Subject-(Object-)Verb pattern
  • Should be lower kebab-case
  • Inquisitive words (typically boolean returning functions) should end with question mark (?)
    • string?, zero?, prime?
  • Procedures should be verbs
    • dup, dip, drop
  • Types should be nouns
    • string, number, complex
  • By convention words begging with underscore _ are considered private.

Inlining Defintions

TBR

Defering Words

TBR