Open edovanveen opened 10 months ago
I have no idea what the MATLAB documentation convention is... but I like this idea in that it makes clear that you probably want to hang on to the returned value so it's not garbage collecting whatever you just created.
I have no idea what the MATLAB documentation convention is... but I like this idea in that it makes clear that you probably want to hang on to the returned value so it's not garbage collecting whatever you just created.
There is no convention, as far as I know!
Right now
self
is missing from help texts on methods, e.g.:It is probably better to do something like:
Alternatively we can follow the recommendation in https://doc.monkeyproofsolutions.nl/code-checker-for-matlab/monkeyproof-matlab-coding-standard/v1.3/Layout/help_text.html. However, because we work with dynamic methods added through subsref,
method(object)
does not work, butobject.method()
does...