# Golang-like member functions

**URL:** <https://discourse.julialang.org/t/golang-like-member-functions/65254>\
**Category:** Internals & Design\
**Tags:** question, design\
**Created:** [July 25, 2021, 7:40am UTC](https://discourse.julialang.org/t/golang-like-member-functions/65254 "2021-07-25T07:40:04Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [July 25, 2021, 9:07am UTC](https://discourse.julialang.org/t/golang-like-member-functions/65254/4 "2021-07-25T09:07:09Z")

</div>

Welcome! Please refer to these two recent previous discussions on this topic:

> [@Allowing the object.method(args...) syntax as an alias for method(object, args ...)](https://discourse.julialang.org/t/allowing-the-object-method-args-syntax-as-an-alias-for-method-object-args/62051):
>
> I started exploring Julia very recently and I like it. I’ve been chatting about it with colleagues. Many people coming from OOP languages (Python…) like the syntax object.method(a,b,c…). Since you can get a preview of the available methods acting on object with tab press. Would it be possible to have that in Julia (I’m assuming it’s not already there) to improve usability? Let say I define a IIR filter struct mutable struct IIRfilter state; alpha; IIRfilter(state,alpha) = 0\<=alpha\<=1 ? …

And

> [@Regarding \`getproperty\` and public vs. private APIs](https://discourse.julialang.org/t/regarding-getproperty-and-public-vs-private-apis/63059):
>
> The syntax x.f calls getproperty which is very widely used. Don’t confuse it with getfield which is the default fallback of getproperty.

Also, please be aware that julia [is not at “that” stage of development anymore](https://discourse.julialang.org/t/psa-julia-is-not-at-that-stage-of-development-anymore/44872). This change would be breaking and thus would only be considered for 2.0 at best (which is unlikely, given that this syntax already means something different and the perceived benefit from this change is not generally seen as enough of a positive change (if positive at all)).

---

_[View the full topic](https://discourse.julialang.org/t/golang-like-member-functions/65254)._
