alan-turing-institute / whatwhat

A reimagining of nowwhat in OCaml
MIT License
0 stars 0 forks source link

Write formal definitions of schedule datatypes #25

Closed triangle-man closed 1 year ago

triangle-man commented 1 year ago

Supercedes #10 .

Whatwhat's model of the world is captured by the Schedule.schedule type, which consists of people, projects, etc. What is the correct domain model represented by those types?

triangle-man commented 1 year ago

Going offtopic already: should the type Schedule.schedule in fact be called Schedule.t, following OCaml convention? Maybe not: the Schedule module doesn't just define a type and associated operations: what it's really about is creating a schedule object.

mhauru commented 1 year ago

Maybe not: the Schedule module doesn't just define a type and associated operations: what it's really about is creating a schedule object.

Not very familiar with OCaml conventions, but I would lean towards this point of view.

triangle-man commented 1 year ago

While pursuing this issue, I got caught up in more general questions of where to define the types. See #44

triangle-man commented 1 year ago

See docs in domain.mli. Suspect we may have to revisit.