官术网_书友最值得收藏!

Patterns for dynamic languages

Python is a dynamic language like Lisp. The dynamic nature of Python can be represented as follows:

  • Types or classes are objects at runtime.
  • Variables can have type as a value and can be modified at runtime. For example, a = 5 and a = "John", the a variable is assigned at runtime and type also gets changed.
  • Dynamic languages have more flexibility in terms of class restrictions.
  • For example, in Python, polymorphism is built into the language, there are no keywords such as private and protected and everything is public by default.
  • Represents a case where design patterns can be easily implemented in dynamic languages.
主站蜘蛛池模板: 佛教| 开化县| 广河县| 乌兰察布市| 崇阳县| 奈曼旗| 石狮市| 麻江县| 泗阳县| 嘉兴市| 象山县| 三门峡市| 阿城市| 射阳县| 建德市| 南平市| 德庆县| 榆林市| 怀宁县| 开原市| 吉水县| 贺州市| 涿鹿县| 西畴县| 台南县| 读书| 楚雄市| 平果县| 灵璧县| 阳原县| 华阴市| 辽阳市| 肥乡县| 集安市| 鸡西市| 澜沧| 哈巴河县| 古浪县| 望奎县| 崇仁县| 台中县|