You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use MiddleClass library for OOP, but problem not exactly in this library, this is common issue.
Look, the good thing here is that we can describe class fields in constructor, so we no need to copy them in class descriptions. This is very nice.
But the bad thing and my actual issue is that when we create a new instance of class, like Fruit({1,0,0}, 1)
we don't get any hints about accepted arguments between brackets and I have no idea how to provide them.
I think, the best solution here is provide some describer for synonyms/shortcuts, like this:
---@shortcutclass.new---@shortcutclassfunctionclass:initialize(...)
end
The text was updated successfully, but these errors were encountered:
Please, look at this short example:
I use MiddleClass library for OOP, but problem not exactly in this library, this is common issue.
Look, the good thing here is that we can describe class fields in constructor, so we no need to copy them in class descriptions. This is very nice.
But the bad thing and my actual issue is that when we create a new instance of class, like
Fruit({1,0,0}, 1)
we don't get any hints about accepted arguments between brackets and I have no idea how to provide them.
I think, the best solution here is provide some describer for synonyms/shortcuts, like this:
The text was updated successfully, but these errors were encountered: