Rosetta Code:Village Pump/Automatic omit: Difference between revisions

no edit summary
(My error in a config file.)
No edit summary
 
Line 1:
{{Vptopic
|topic=Automatic omit
|summary=Defining required features (eg GUI, network access) as a property of tasks and languages
}}
Often several different tasks are about the same general feature (e.g. concurrency, GUI, network access, file system operations, etc.). Now if a language doesn't support any of those, then it will of course support none of the specific tasks for that feature (e.g. a language that doesn't support concurrency will not support any task that involves threads, mutexes or semaphores). Currently you need to have an explicit <nowiki>{{omit from|Language}}</nowiki> for each of the tasks. I think it would be a good idea if there were a defined set of general features, where the task could state whether the features are needed, and the language page may state which features are not supported, and then to automatically omit all languages from a task if they don't support the features (except if there's an explicit example for the language in that task; maybe there's a workaround for the specific tasks in the language).