What does “:=” do?

前端 未结 10 1688
别那么骄傲
别那么骄傲 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:04

    This is old (pascal) syntax for the assignment operator. It would be used like so:

    a := 45;
    

    It may be in other languages as well, probably in a similar use.

提交回复
热议问题