问题描述
在谈论编程语言时,正交性"是什么意思?
What does "orthogonality" mean when talking about programming languages?
正交性有哪些例子?
推荐答案
正交性是该属性这意味着更改A不会更改B".正交系统的一个示例是无线电,其中更改电台不会更改音量,反之亦然.
Orthogonality is the property that means "Changing A does not change B". An example of an orthogonal system would be a radio, where changing the station does not change the volume and vice-versa.
非正交系统就像是直升机,改变速度可以改变方向.
A non-orthogonal system would be like a helicopter where changing the speed can change the direction.
在编程语言中,这意味着当您执行一条指令时,除了该指令外什么都不会发生(对于调试非常重要).
In programming languages this means that when you execute an instruction, nothing but that instruction happens (very important for debugging).
引用指令集时,还有一个特定含义.
There is also a specific meaning when referring to instruction sets.
这篇关于什么是“正交性"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!