codethesaur.us icon indicating copy to clipboard operation
codethesaur.us copied to clipboard

Rethink functions vs subroutines in Functions concept file

Open geekygirlsarah opened this issue 3 years ago • 0 comments

Description

In some languages, the idea of a function (group of code given input that returns some output) and a subroutine (a callable block of code to do a task) are two different things. In others, they're the exact same thing (or are only differentiated by if you provide inputs or send outputs).

Several people that contribute to CT see "Call subroutines" as "Call a function", which may or may not be correct depending on the language.

This issue is to rethink what this file should use for this, and maybe to add "call function" and change subroutines to something like "define subroutine" and "call subroutine".

Implementation

If you think you have a good way to go about this, feel free to submit a pull request to modify /web/thesauruses/_meta/functions.json. Otherwise feel free to chime in on comments here to start thinking this through with me.

geekygirlsarah avatar Aug 28 '22 19:08 geekygirlsarah