Is there a visual modeling language or style for the functional programming paradigm?

后端 未结 11 948
离开以前
离开以前 2020-12-12 12:50

UML is a standard aimed at the modeling of software which will be written in OO languages, and goes hand in hand with Java. Still, could it possibly be used to model softwar

11条回答
  •  暖寄归人
    2020-12-12 13:12

    You can a data flow process network model as described in Realtime Signal Processing: Dataflow, Visual, and Functional Programming by Hideki John Reekie

    For example for code like (Haskell):

    fact n | n == 0    = 1
           | otherwise = n * fact (n - 1)
    

    The visual representation would be:

提交回复
热议问题