ToDo:
http://twitter.com/niha28/status/8890624685
http://twitter.com/shinh/status/8896555291
Python ¤À¤È¡¢
for x in array: if fuga(x): break else: return # ¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¤«¤é return
Ū¤Ê¤Î¤¬¤Ç¤¤ë¤Ã¤ÆÏäʤó¤À¤±¤É¡¢ ʸˡ¤µ¤¨¤Þ¤È¤â¤Ê¤é¤É¤ó¤Ê¸À¸ì¤Ç¤âÍߤ·¤¤¤È»×¤¦¤ó¤À¤è¤Ê¤¡¡£
¤Á¤ç¤Ã¤È¹Í¤¨¤Æ¤ß¤ë¤Ë continue/next »È¤¦¤È¤¤¤¤¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¤¡¤È»×¤¦¤ó¤À¤±¤É¡¢ ʸˡŪ¤Ë¤³¤¦Û£ËæŪ¤ÊÈù̯¤µ¤¬¤¢¤ëµ¤¤¬¤¹¤ë¤ó¤À¤Ê¡£
for (;;) { if (fuga) break; } continue { return; }
¤Ï¤Þ¤¡ continue ¤Î¸å¤Ë¥»¥ß¥³¥í¥ó°Ê³°¤Ê¤é¤¤¤¤¤Î¤Ç¤¤¤¤¤«¡£
loop { break if fuga } next { return }
¤È¤«
loop do break if fuga next return end
¤ÏÂçÊѸ·¤·¤½¤¦¤À¡£
(02:20)
kosaki ¤µ¤ó¤¬ Ruby ¤Î hello ¤¬¤ï¤«¤é¤ó¤È¤ª¤Ã¤·¤ã¤Ã¤Æ¤¤¤¿¤Î¤Ç ¤¢¤ó¤Þ C ¤ÈÊѤï¤é¤ó¤è¡¢¤È½ñ¤¤¤¿¥³¡¼¥É
http://github.com/shinh/test/blob/014d475797f697d8f69017a3ce9517a46cdb9fcb/hello_ruby.rb
¤³¤ó¤Ê¤«¤ó¤¸¤Ç¤Ä¤±²Ã¤¨¤Æ¤ä¤ë¤È C ¤Ç¤â¥ê¥ó¥¯Ä̤롣
http://github.com/shinh/test/blob/f24f802bfb24492b0e79167aae399385db54b5e8/hello_ruby.rb
C ¤Ý¤µ¤ò°Ý»ý¤·¤Æ Perl ¤¢¤¿¤ê¤âÄ̤ë¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤«¤Ê¤¡¡£
#include <stdio.h> #include <stdlib.h> int loop { printf("Hello, world!\n"); exit(0); }
¤Ï¼ê¤Ã¼è¤êÁᤤ¤±¤É¡¢´Ø¿ô¤Ë°ú¿ô¤Ê¤¤¤Î¤ÏÉÔ¼«Á³¤À¤è¤Ê¡£
(02:33)
http://zerobase.jp/blog/2005/10/ajaxquickedit_html.html
¤³¤¦¤¤¤¦¤Î̵¤¤¤«¤Ê¡¼¤È»×¤Ã¤Æ¸¡º÷¤·¤¿¤é½Ð¤Æ¤¤¿¡£ ¸¡º÷¥¡¼¥ï¡¼¥É¤Ï¡Ö¥Ö¥Ã¥¯¥Þ¡¼¥¯¥ì¥Ã¥È ¤½¤Î¾ì¤ÇÊÔ½¸¡×¡£ Ëͤˤ·¤Æ¤Ï¤¦¤Þ¤¤¸¡º÷¤À¤Ê¡¼¤È¤¤¤¦¤«ËÍ´ðËÜŪ¤Ë °ì¸ì°Ê¾å¤Ç¸¡º÷¤¹¤ëǾ¤¬Ìµ¤¤¤«¤é¤Ê
(04:50)
Á° | 2010ǯ 2·î |
¼¡ | ||||
Æü | ·î | ²Ð | ¿å | ÌÚ | ¶â | ÅÚ |
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 |
Á´¤Æ¥ê¥ó¥¯¥Õ¥ê¡¼¤Ç¤¹¡£ ¥³¡¼¥ÉÊҤϼ«Í³¤Ë»ÈÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾¤Î¤â¤Î¤ÏGPL°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£
int¤Ç¥¨¥é¡¼¤Ë¤Ê¤é¤Ê¤¤¤Î¤Ï¤Ê¤ó¤Ç¤Ç¤¹¤«¡©
¥Ñ¡¼¥¹»þ¤Ë¤Ï¥á¥½¥Ã¥É°·¤¤¤Ë¤Ê¤ë¤Î¤Ç¥Ñ¡¼¥¹¥¨¥é¡¼¤Ë¤Ï¤Ê¤é¤º¡¢
¼Â¹Ô»þ¤Ë¤Ï·ë¶Écall¤µ¤ì¤Ê¤¤¤«¤é¡©
¤½¤¦¤¤¤¦¤³¤È¤À¤È»×¤¤¤Þ¤¹¡£ exit(0) ¤ò break ¤Ë¤·¤Æ¤ä¤ë¤È¤è¤¯¤ï¤«¤ë¤«¤È¡£