Doc_strings Storage
Posted: Wed Mar 09, 2011 7:50 am
Charles,
Are doc strings stored within the code or is it planned to be implemented in a seperate xml file
like c# comments, -doc option produces html. so does one has to read html to recover doc-strings??
i propose that doc-strings be implanted within the programm as attributes on c# side or are they allready.so that one can recover them programmatically for instance
on csharp side
so while using the assembly one can get it logically like this
It would be good for future interpreters to see what something means.
and while we are at it why not introduce another Attribute Like CobraNonDocStringComment
for single line and multiline comments when they occur above or as you like below anything
and if you think of code bloat then there could be a commanline option to not include doc-strings.
so what do you think should i push a ticket?
Thanking_You
RIGHT_THEN
Are doc strings stored within the code or is it planned to be implemented in a seperate xml file
like c# comments, -doc option produces html. so does one has to read html to recover doc-strings??
i propose that doc-strings be implanted within the programm as attributes on c# side or are they allready.so that one can recover them programmatically for instance
def func
""" def doc-string"""
on csharp side
- Code: Select all
[CobraDocStringAttribute("def doc-string")]
func()
{}
so while using the assembly one can get it logically like this
- Code: Select all
if method has CobraDocStringAttribute
get DocString
It would be good for future interpreters to see what something means.
and while we are at it why not introduce another Attribute Like CobraNonDocStringComment
for single line and multiline comments when they occur above or as you like below anything
and if you think of code bloat then there could be a commanline option to not include doc-strings.
so what do you think should i push a ticket?
Thanking_You
RIGHT_THEN