aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/control/remember.lux
blob: 1a917a58fa0b99116224ce9e4defb32f6bbe5371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
(.using
 [library
  [lux (.full)
   ["$" documentation (.only documentation:)]
   [data
    [text (.only \n)
     ["%" format (.only format)]]]
   [macro
    ["[0]" template]]]]
 [\\library
  ["[0]" /]])

(documentation: /.remember
  (format "A message with an expiration date."
          \n "Can have an optional piece of code to focus on.")
  [(remember "2022-04-01"
     "Do this, that and the other.")]
  [(remember "2022-04-01"
     "Improve the performace."
     (some (complicated (computation 123))))])

(documentation: /.to_do
  (format "A TODO message with an expiration date."
          \n "Can have an optional piece of code to focus on.")
  [(to_do "2022-04-01"
     "Do this, that and the other.")]
  [(to_do "2022-04-01"
     "Improve the performace."
     (some (complicated (computation 123))))])

(documentation: /.fix_me
  (format "A FIXME message with an expiration date."
          \n "Can have an optional piece of code to focus on.")
  [(fix_me "2022-04-01"
     "Do this, that and the other.")]
  [(fix_me "2022-04-01"
     "Improve the performace."
     (some (complicated (computation 123))))])

(.def: .public documentation
  (.List $.Module)
  ($.module /._
            ""
            [..remember
             ..to_do
             ..fix_me
             ($.default /.must_remember)]
            []))