softlang / metalib

A Chrestomathy of DSL implementations
https://softlang.github.io/metalib
9 stars 1 forks source link

Cleanup of Haskell model #32

Open rlaemmel opened 7 years ago

rlaemmel commented 7 years ago

Looking at this:

image

The fold is not "data" perspective. It may count as "Run-time system" (new subfeature of "Dynamic semantics").

Since the event sequence is shown in the same piece of code, which is indeed "data", you would need two perspectives.

Anyway, the code is not well modularized in two ways: