�������ϲ���Ů����2000������
����������ϥ��ĥ������ʥ��衣{ hogehoge( a, b, c, ); }���쥬������������͡�
_ nagaton (2006-04-30 12:41) ������ʤοͤ��줾��Ǥ��礦�衣 ���ʤߤ�c�θ�Υ���ޤ�;�פ���w
���ʤߤˡ���餬Damian�����β����Ϥ�����
Place a comma after every value in a multiline list. ʣ���Ԥˤޤ�����ꥹ�ȤǤϡ�ɬ������ޤ��ǤĤ٤�
���������ꥹ�ȤǤϡ����ܤ򤷤Ф��������ؤ��롣����˹��ܤ��դ��ä���Ȥ��⡢����ޤ򤢤餫�����ǤäƤ����С������������ޤǤ����Τܤäƥ���ޤ��Ǥ�ľ��ɬ�פ�ʤ������¤��ؤ��ˤ��н�Ǥ��롣
��⤳�Υ롼��˳��ͻ����ʤΤ����ɡ����ä����ˤ���practice��������(�ʤ���������)�˶��̤˻Ȥ��ʤ���������ޤ������ʸ�����ͤϾ��ʤ��ʤ����������ˤ�ä����ܤʾ���빽����(�㤨��Ʊ��JavaScript�Ǥ⡢Safari�����ܤ�Firefox��OK�Ȥ���
�Ȥ����櫓�ǡ�������ޤ��Ȥ��뤫�ɤ����������ä�Ĵ�٤Ƥߤ����Ĥ��Ǥ�perl��qw�����Τ�Τ����뤫�ɤ���������å���ȴ���⤢��Τǡ������������ɽ�ΥΥ�����Ƥ�館��Ȥ��줷�󤰡�
���� | ���� | ������� | qw | ������ | Link |
---|---|---|---|---|---|
Perl5 | 5.0�ʹ� | my @list = ( 1, 'two', $three, ); | qw(1 two three) | # there's more than one way # to list them! | perldoc perlintro |
Perl6 | Pugs | # same as above | < 1 two �� > # or q:w(1 two ��) | # even more ways to list'em! | Synopsis 02 |
Ruby | 1.8���� | list = [ 1, 'two', three, ] | %w(1 two three) | # Enjoy listing them! | Ruby��ե���󥹥ޥ˥奢�� |
Python | 2.2���� | # same as above # -- same as ruby! | #�狼��ޤ��� | # The should be only one way # - our way! | Python��ե���󥹥ޥ˥奢�� |
(?:ECMA|Java)Script | 1.6����? | var list = [ 1, 'two', three, ]; // not ok on Safari | // �ʤ� | // JavaScript is not // Java or Script | �罸�� |
C|C++|Java | /* well... */ | String list[] = { "1", "two", three, }; /* OK on gcc */ | /* no way */ | /* hello, list */ | �罸�� |
lisp/scheme | (any 'implementation) | '( 1 two three ) | '(1 two three) | ; commas? ; are you talking about macros? | �罸�� |
my @signature = (
Dan,
the,
Perl,
Monger,
);
Aki the Occasionally Comatose