What is “Orthogonality”?

前端 未结 17 1548
离开以前
离开以前 2020-12-12 09:42

What does \"orthogonality\" mean when talking about programming languages?

What are some examples of Orthogonality?

17条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 10:14

    Orthogonality means the degree to which language consists of a set of independent primitive constructs that can be combined as necessary to express a program. Features are orthogonal if there are no restrictions on how they may be combined

    Example : non-orthogonality
    

    PASCAL: functions can't return structured types. Functional Languages are highly orthogonal.

提交回复
热议问题