[Dok Melody Scratchpad Notes]

trick/subject-based-programming

In feature/oop the structure is subj.fun(obj1, obj2, :param v1, :param2 v2). The advantage are:

  • results can be chained
  • easy to associate a function to the data-type of the subject