What does “:=” do?

前端 未结 10 1734
别那么骄傲
别那么骄傲 2020-12-04 10:47

I\'ve seen := used in several code samples, but never with an accompanying explanation. It\'s not exactly possible to google its use without knowing the proper

10条回答
  •  天涯浪人
    2020-12-04 11:11

    Another interpretation from outside the world of programming languages comes from Wolfram Mathworld, et al:

    If A and B are equal by definition (i.e., A is defined as B), then this is written symbolically as A=B, A:=B, or sometimes A≜B.

    ■ http://mathworld.wolfram.com/Defined.html

    ■ https://math.stackexchange.com/questions/182101/appropriate-notation-equiv-versus

提交回复
热议问题