How do you program differently in dynamic languages?

前端 未结 15 1802
南笙
南笙 2021-02-01 03:37

How would someone who really knows how to take advantage of dynamic programming languages approach programming differently than someone working in a static language?

I

15条回答
  •  别跟我提以往
    2021-02-01 04:10

    I think the most dramatic difference in choice of data structures.

    In Java or C I define structs or classes very strictly. If I need to add a property, I go back and change the definition.

    In Perl I'll just use a hash, and 'invent' keys as I code.

提交回复
热议问题