What are the benefits (and drawbacks) of a weakly typed language?

后端 未结 7 919
情书的邮戳
情书的邮戳 2020-12-11 00:52

I\'m a big fan of PHP and it\'s obviously a very weakly-typed language. I realize some of the benefits include the general independence of changing variable types on the fly

7条回答
  •  旧时难觅i
    2020-12-11 01:36

    You have to understand that PHP was created for the context of web applications. Everything in the context of the web is a string. Therefore it is very rare where strong typing would be beneficial.

提交回复
热议问题