Skip to content

Commit

Permalink
record constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Sep 25, 2024
1 parent 31adb04 commit 9e461eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CODING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Transferability := Transferable | NonTransferable
- functions, constructors, etc: lower camel case (`tokenLogic`, `transferLogic`)
- instances: lower came case with `I` at the end (`instance eqNatI : Eq Nat := ..`)
- boolean check functions: start with `is` (`isWhatever`)
- constructors: `mk` + type name (`mkResource`)
- record constructors: `mk` + type name (`mkResource`)
- meaningful descriptive long names for arguments of public functions, e.g., `element`, `list`, `initialValue`
- exception: common abbreviations allowed: `fun`, `acc`
- short names like `x` are okay for local definitions
Expand Down

0 comments on commit 9e461eb

Please sign in to comment.