Sukera
November 10, 2022, 11:39am
5
In short - no, this is not and will not be an official thing. There are numerous threads about this topic already. Please familiarize yourself with the existing discussions before starting a new one.
https://discourse.julialang.org/search?q=OOP
https://discourse.julialang.org/search?q=object%20oriented
You heard about this brand new exciting programming language called Julia and have some suggestions for how it should work. Wonderful! We’re happy to have you here and help you learn the language and listen to your ideas! However, please be aware that “new” is a relative term. Yes, Julia is newer than, say, C, which was first created in 1972 and standardized in 1989. It is not, however, new in the sense that it is still being freely designed and changed in arbitrary ways. Julia development start…
There’s also this thread, which has VERY extensive discussion about this syntax and why it won’t be a thing:
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 ? …
10 Likes