Rosetta Code:Village Pump/Works with
Appearance
Works with
This is a particular discussion thread among many which consider Rosetta Code.
This is a particular discussion thread among many which consider Rosetta Code.
Summary
Works with template - usage
Discussion
Question: How am I supposed to be using the works with template? In my JavaScript examples, I've put "{{works with|JavaScript|1.6}}" so far, since in my opinion, the language version gives more information than in which implementations it works. Should I change it, or is it all right to use it that way? (at the moment, only Firefox supports anything >1.5, as far as I know [of web browser implementations, that is]). ~FireFly tc 14:42, 30 January 2010 (UTC)
- In this case you should use it when you use features of JavaScript 1.6 that aren't compatible with JavaScript 1.5 and lower. You should also use it if you use a specific third-party library or even a special compiler that might accept different syntax. --Mwn3d 16:10, 30 January 2010 (UTC)
- That template is primarily for showing that an example depends on something. It started out as a set of different templates for compiler, interpreter, language, platform and operating system versions, but trying to cleanly classify things on those grounds is a contentious and muddy matter. It boils down to identifying a set of requirements so that when someone says, "Hey, this doesn't work for me," it's easier to identify why. (Your HTML+CSS Quine example would be a good place, for example, to show that it works with Opera, Firefox and Safari.) --Michael Mol 17:46, 30 January 2010 (UTC)