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

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.
主站蜘蛛池模板: 莎车县| 德安县| 宝坻区| 龙川县| 白河县| 正定县| 乌海市| 新巴尔虎左旗| 兰州市| 行唐县| 陕西省| 南岸区| 郴州市| 白玉县| 罗江县| 徐汇区| 柳林县| 榆中县| 金塔县| 广饶县| 太谷县| 潞城市| 舞阳县| 建宁县| 巨野县| 桦南县| 固安县| 金昌市| 怀来县| 南阳市| 昂仁县| 如皋市| 定结县| 额济纳旗| 沭阳县| 彭泽县| 枞阳县| 雷山县| 新营市| 福贡县| 荔波县|