Constructor and method topics

  • Frank Hellwig

    Frank Hellwig - 2012-04-29

    Updated my project-local Topics.txt file so that constructors and methods
    would be called out specifically instead of being tagged universally under
    "Functions." This seems like such a common (natural?) thing that I am
    surprised it is not in the baseline Topics.txt file. Any chance of this
    becoming part of the common Topics.txt file? Thanks.

  • Greg Valure

    Greg Valure - 2012-05-02

    Not methods vs. functions, because in many languages it's not a meaningful
    distinction. In C# for example there are completely different usage paradigms
    between functions, variables, and properties so it makes sense to divide them
    into groups. Whether a function returns a value or not (i.e. is an actual
    function as opposed to a procedure or method) depends on what that particular
    one does but does not cause them to be seen as fundamentally different
    constructs. You could argue that the difference is "do something" versus
    "calculate and return a value", but often the "do something" members return
    result codes and thus are technically functions.

    Constructors vs. functions is different and may appear in the future.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks