# Why there is no OOP (object oriented programming) in Julia?

**URL:** <https://discourse.julialang.org/t/why-there-is-no-oop-object-oriented-programming-in-julia/86723>\
**Category:** New to Julia\
**Created:** [September 3, 2022, 10:30am UTC](https://discourse.julialang.org/t/why-there-is-no-oop-object-oriented-programming-in-julia/86723 "2022-09-03T10:30:21Z")\
**Posts on this page:** 1\
**Showing post:** 48

<div class="post-metadata">

**Author:** ![GHTaarn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ghtaarn/32/216007_2.png) [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Post date:** [September 5, 2022, 8:11am UTC](https://discourse.julialang.org/t/why-there-is-no-oop-object-oriented-programming-in-julia/86723/48 "2022-09-05T08:11:04Z")

</div>

So far, no-one here has suggested using “closures” which I personally find ideal for having specific data be associated with a specific function. A search for Julia and closures should give you a lot of references, one of them is [Julia Language Tutorial =\> Introduction to Closures](https://riptutorial.com/julia-lang/example/23207/introduction-to-closures) . It is a functional programming technique and if I understand you correctly, then this can provide what you are asking for.

I use this technique a lot in places where I would have encapsulated things in an object in an OO language.

---

_[View the full topic](https://discourse.julialang.org/t/why-there-is-no-oop-object-oriented-programming-in-julia/86723)._
