Julia: OOP or not

后端 未结 6 1082
难免孤独
难免孤独 2021-02-01 00:46

I\'m working on Juno with Julia.

I don\'t know if Julia supports OOP or not.

For example, is there something like class or struct of c+

6条回答
  •  情话喂你
    2021-02-01 01:35

    The answer is that Julia is closer to c rather than c++. Thus, OOP is limited in Julia having only c::struct rather than c++::class. Hence, it's just data encapsulation or data structure or customization of Types rather than true OOP objects, in the strict sense.

提交回复
热议问题