Content deleted Content added
No edit summary |
m Tagging using AWB (10458) |
||
Line 1:
{{
In [[computer programming]], '''ellipsis''' notation (.. or ...) is used to denote ranges, or an unspecified number of arguments.
Most programming languages other than [[Perl6]] require the ellipsis to be written as a series of periods; a single ([[Unicode]]) ellipsis character cannot be used.
Line 8:
:<code>foreach (1..100)</code>
In Ruby, the <code>...</code> operator denotes a half-open range, i.e. that includes the start value but not the end value.
Perl [[Operator overloading|overloads]] the ".." operator in scalar context as a [[stateful]] [[bistability|bistable]] [[Boolean datatype|Boolean]] test, roughly equivalent to "true while ''x'' but not yet ''y''".<ref>[http://perldoc.perl.org/perlop.html#Range-Operators-operator%2c-range-range-..-... perlop - perldoc.perl.org<!-- Bot generated title -->]</ref> In [[Perl6]], the 3-character ellipsis is also known as the "yadda yadda yadda" operator and, similarly to its [[linguistic meaning]], serves as a "stand-in" for code to be inserted later. In addition, an actual [[Unicode]] ellipsis character is used to serve as a type of marker in a perl6 format string.<ref>[http://dev.perl.org/perl6/doc/design/exe/E07.html#And_mark_what_way_I_make... Exegesis 7: Formats - perl6<!-- Bot generated title -->]{{Self-published inline|date=January 2011}}</ref>
Line 46:
[[C99]] introduced macros with a [[variadic macro|variable number of arguments]].<ref>[http://gcc.gnu.org/onlinedocs/gcc/Variadic-Macros.html Variadic Macros - Using the GNU Compiler Collection (GCC)]</ref>
[[C++11]] included the C99 preprocessor,<ref>Working draft changes for C99 preprocessor synchronization - http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1653.htm</ref> and also introduced templates with a [[variadic template|variable number of arguments]].<ref>{{cite web | title=Working Draft, Standard for Programming Language C++ | url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3337.pdf}}: 14.5.3 Variadic templates</ref>
===Java===
|