http://qiita.com/mizchi/items/3bbb3f466a3b5011b509 ã§ç´¹ä»ããã¢ãã³JSã¹ã¿ãã¯ã®ä¸ã«ãflowtype ãå°å ¥ãã¦åãããã ã¢ããã«è¿½å ãã¦ããã¢ããã¼ããç´¹ä»ãã¾ãã ãªãflowtypeãããã®ã´ã¼ã«ã¯ æµè¡ã£ã¦ããã©ã¤ãã©ãªã®ã¿ãçµã¿åããã¦ä½¿ãå ´åããããã¯ã¨ã³ãã¨ã®é£æºã«ããã¦åãååã«æä¾ãããç°å¢ãªããæ£ç´ãflowtypeããtypescriptã§ããã¨æã£ã¦ãã¾ããflowtypeãåãçºæ®ããç°å¢ã¯ãæ¢åã®JSã大éã«åå¨ããç°å¢ããrailsãªã©ã®åçãªåã®ãã¬ã¼ã ã¯ã¼ã¯ç°å¢ã§ãéçãªå®ç¾©ãæ½åºã§ããªãç°å¢ã ã¨æãã¾ãã ãã»ã©å質ãä½ãã©ã¤ãã©ãªã使ããªããããããã°ã¯ã»ã¨ãã©èªåãè¨è¿°ããã³ã¼ãã«ãã£ã¦çºçãã¾ãããªã®ã§ãã¾ãã¯ãèªåãæ¸ããã³ã¼ãã®IFãæ確ã«ãããã®éçãªãã§ãã¯ãè¡ãªãããã¨ããã®ãæåã®ç®
ååã«å¼ãç¶ããã¯ããã¦ã®PHPããã°ã©ãã³ã° åºæ¬ç·¨5.3対å¿ã®ãããã¨ããã®æçµåã¯ã»ãã¥ãªãã£ã®è©±é¡ã§ã¯ãªãããã¼ã¿ãã¼ã¹ã®åã®åã«ã¤ãã¦ã ã æ¬æ¸ã®P215ã«ã¯ãSQLiteã使ã£ã¦ä½æé²ã®ãã¼ãã«ãä½ããã¨ããã®ã ãããã¼ãã«ã®å½¢å¼ã¯ä»¥ä¸ã®ããã«ãªã£ã¦ããã ã«ã©ã å æå³ ãã¼ã¿å 主ãã¼ NOT NULL åè id éãçªå· INTEGER â â èªåçã«éãçªå·ãå²ãæ¯ããã name æ°å TEXT - â zip éµä¾¿çªå· INTEGER(7) - - ãã¤ãã³(-)ãé¤ãã7æ¡ã®æ´æ° address ä½æ TEXT - - create_at ç»é²æ¥æ DATETIME - â éµä¾¿çªå·ã®åãINTEGER(7)ã«ãªã£ã¦ããã®ãè¦ã¦ãç§ã¯ç®ããããã ä¸è¬çã«ãéµä¾¿çªå·ã¯VARCHAR(7)ãVARCHAR(8)ã«ããå ´åãå¤ãã¨æãããã£ã¨ä¸è¬çã«ããÃÃçªå·ã
http://cpansearch.perl.org/src/GFUJI/Mouse-2.1.0/t/040_type_constraints/009_union_types_and_coercions.t subtype 'IO::StringOrFile' => as 'IO::String | IO::File'; ã ãã§åãã®ãã¨åæã«æã£ã¦ããã©ãããã§ããªãããã§ãã subtype 'IO::String' => as 'Object' => where { $_->isa('IO::String') }; subtype 'IO::File' => as 'Object' => where { $_->isa('IO::File') }; subtype 'IO::StringOrFile' => as 'IO::String | IO::File';
é£ãè¨äºã¯ã¹ã«ã¼æ¨å¥¨ã ãã©ã200ãã¯ãè¶ãã¦ããããã¨ã»ã£ã¨ãã®ãã©ãããªã¼ãã¨æãã®ã§ãtwitter ã®ã¤ã¶ããããããã¼ã«ã¾ã¨ãããã åãåçåã«é¢ããé£ãè¨äºæ¸ãã¦ã80ãã¯ãã¨ãéãã¦ã¿ããwâ tsucchiãã (@tsucchi) 2013å¹´2æ27æ¥ åã®ãã¤ä»æã¿ãã200ãã¯ãè¶ ãã¦ãã®ã§ãã¡ããã¨ãããããããã£ã¦ææããè¨äºã¨ãæ¸ããã»ããããæ°ããã¦ããã ãã©ãã¡ããã¨èªããã»ã©éçåè¨èªåãã£ã¦ãªãããå主張ãå¼ç¨ãã¤ã¤ãããããã³ææãããããªããã©ããã¨ããæã¯ç¡ãâ tsucchiãã (@tsucchi) 2013å¹´2æ28æ¥ æ¥ãæ·±ãã¨æãã®ã¯ããã¯ãã³ã¡ãçµæ§ããããªãã¨æ¸ãã¦ãã£ãããããã ããªã¼â tsucchiãã (@tsucchi) 2013å¹´2æ28æ¥ ã©ããªåãåã·ã¹ãã æã£ã¦ã¦ãããã¹ãã¯å¿ è¦ã ã¨æãããã©ããªãããåã·ã¹ãã ã§
èªåã®æèãæ´çããæå³ã§ãã件ã®ã¢ã¬ã«ã¤ãã¦èãããã¨ãæ¸ãã¦ã¿ãã å¤æ°ã«åããªãã¨ãããã¨ã®å©ç¹ã«ã¤ãã¦èãã - ãµã³ãã«ã³ã¼ãã«ããPerlå ¥é http://d.hatena.ne.jp/perlcodesample/20130227/1361928810 ãã®ä»¶ã«è§¦ãããã¨ã¯ããã°ã©ãã¨ãã¦ã®ä¸äºç ã§ãããæ¥ããããããã¸ã¬ã¹ä¹ã ã ã§ãæ°ã¥ããã5000æåãæ¸ãã¦ãã¾ã£ãããå ¬éãã¦é ã®ãã§å¯ãã åã®ããã¼ã¯æ©æ¢°ã®ããã ãã§ãªãã人éã«å¯¾ãããã®ã§ããã æè¿TypeScriptãæ¸ãã¦ãããããã¤ã使ã£ã¦ãäºæ¬¡å 座æ¨ä¸ã§äºç¹éãæ±ããé¢æ°ãgetDistanceãå®ç¾©ãã¦ã¿ããã interface IPoint { x: Number; y: Number; } var getDistance = (a:IPoint, b:IPoint): Number => Ma
2013å¹´03æ01æ¥16:00 ã«ãã´ãªLightweight Languages åãå¿ããéçè¨èªãåãè¦ãã¦ãåçè¨èª å¬éãããã¾ããã @dankogaiãããããã°ã§åå ¥ãããé¢ç½ããã ãå¤æ°ã«åããªãã¨ãããã¨ã®å©ç¹ã«ã¤ãã¦èãã - ãµã³ãã«ã³ã¼ãã«ããPerlå ¥éã (id:perlcodesample / @perlcodesample2) d.hatena.ne.jp/perlcodesampleâ¦â r-west (@rwest2112) February 28, 2013 è¨èªè¨è¨è ãã¡ãèããã㨠Mastermind of Programming Federico Biancuzzi / Shane Warden ä¼è¤ç浩 / é æ«å義 / ä½è¤åä¸ / é´æ¨å¹¸æ / æä¸é ç« è¨³ [åè:Masterminds of Programming] ã¾ããããã
id:perlcodesample ããã® å¤æ°ã«åããªãã¨ãããã¨ã®å©ç¹ã«ã¤ãã¦èãã - ãµã³ãã«ã³ã¼ãã«ããPerlå ¥é ããã ãããã ããã©ããåããªãã¨ãããã¨ã¯ãæ¬å½ã«ç´ æ´ããããã¨ã§ãã åããªããã¨ã«ãã£ã¦ãããããã®é¢åãã解æ¾ãããããã§ãã åé ã®ãããããéçåä»ãè¨èªã«ã¯ã¡ãªããã(ã»ã¨ãã©)ãªããã¨è¨ã£ã¦ããããã«æãã¦ãã¾ãã¾ãã ã³ã¡ã³ãã®ããåããè¦ã¦ããããç¨åº¦ããèãã¦ããããã«åãåãã¾ãã åéããªã©ãå¤ãè¦ãããã®ã§ãè£è¶³ã¨ããããåè«ã¨ãããããããªæãã®ãã¨ãæ¸ãã¾ãã 追è¨ï¼ ããä¸é¨ããã®ã¨ã³ããªããåçåä»ãè¨èªã¨éçåä»ãè¨èªãæ¯ã¹ã¦ãéçåä»ãè¨èªã®æ¹ãç´ æ´ãããè¨èªã§ãããã¨ãããã¨ãè¨ãããã®ãã®ã ã¨åéããã¦ãã人ãè¦ããã¾ããã ãã®ã¨ã³ããªã¯ãããã«ã¤ãã¦ã¯è¨åãã¦ãã¾ããã ããã¾ã§ãå è¨äºã§ãåçåä»ãè¨èªã®ã¡ãªã
æã¨ã³ããªãåã«ã¤ãã¦åèãããã£ããã«ãªã£ãã®ã¯äºå®ã ããåã 人ã®ææ³ã®æå¦ãåãæ°ããªãã®ã§ã¨ãã«ãªã³ã¯ã¯ããªããããã§ã¯åã¨ã¯ä½ãã¨ããç¹ã«ã¤ãã¦åãªãã®ææ³ãè¨ãã¦ããããã ãã¼ã¿åãåºå¥ããªãä¸ç ããã·ã³ãã«ãªãã¥ã¼ãªã³ã°ãã·ã³ãèãããã ãã¥ã¼ãªã³ã°ã®ä»®æ³æ©æ¢°ã¯ã ç¡éã«é·ããã¼ã ãã®ä¸ã«æ ¼ç´ãããæ å ±ãèªã¿æ¸ãããããã æ©æ¢°ã®å é¨ç¶æ ãè¨æ¶ããã¡ã¢ãª ã§æ§æãããå é¨ç¶æ ã¨ãããããèªã¿åºããæ å ±ã®çµã¿åããã«å¿ãã¦ã次ã®åä½ãå®è¡ããã ãããä½ç½®ã®ãã¼ãã«æ å ±ãæ¸ãè¾¼ã æ©æ¢°ã®å é¨ç¶æ ãå¤ãã ããããå³ãå·¦ã«ä¸ã¤ç§»åãã ä¸ã®åä½ããæ©æ¢°ã¯å é¨ç¶æ ãåæ¢ç¶æ ã«ãªãã¾ã§å復ãã¦å®è¡ãç¶ããã ãã¥ã¼ãªã³ã°ãã·ã³ ãã®åå§çãªä¸çã«ããã¦ãåãã¯ãªããã¡ã¢ãªã¯æ½è±¡çã§å ¨ã¦ã®ã¡ã¢ãªã¯åçã«æ±ããåºå¥ããå¿ è¦ã¯ãªãã ã¾ãããã¥ã¼ãªã³ã°ãã·ã³ã«ç¨è¿ãåå§çãªããã°ã©ã
å¤æ°ã«åããªãã¨ãããã¨ã®å©ç¹ã«ã¤ãã¦èãã http://d.hatena.ne.jp/perlcodesample/touch/20130227/1361928810 ã大å¤ãç²æ«ãªå 容ã ã£ãã®ã§ãåè«è¨äºãæ¸ãã¾ãã åæ¨è«ã¯ã½ã¼ã¹ã³ã¼ãã®ã³ã³ãã¤ã«ã®æéãé ããã¦ãã¾ãã¾ããã½ã¼ã¹ã³ã¼ãã大ãããªã£ã¦ããå ´åã«ããã°ããæ¸ãã¦ããã°ããå®è¡çµæãããããã¨ãã§ããªããªãã¾ããä»æã®ãã½ã³ã³ãªãã³ã³ãã¤ã«æéãªãã¦å¤§ãããã¨ãªãã 大è¦æ¨¡éçºç°å¢ã¯ã³ã³ãã¤ã«æéãããªã³ã¯æéã®æ¹ãåé¡ã«ãªããããããããã¯å¥ã«åã®è©±ã¨ã¯é¢ä¿ãªãã ãã¨ãã¤ã³ã¿ã¼ããªã¿ãæè¿ã¯å®è¡æã«JITã³ã³ãã¤ã©ãèµ°ãã å®è¡æéã«å½±é¿ããªããéçºè ã®å¾ ã¡æéã§æ¸ãæ¹ãå®ã¯ããã®ã§ã¯ï¼ çµ±åéçºç°å¢ã§ã®ãã¡ã½ããã®èªåè£å®ã®æ©è½ã®å®è£ ãå°ãé£ãããªãã¾ããã¿ããªãçµ±åéçºç°å¢ãã¤ããã¨ã§ãï¼ ããããåãä¸å®ãªã
Perl ⺠èªã¿ç© PHPãPerlãRubyãPythonãªã©ã®ã¹ã¯ãªããè¨èªã«å¯¾ãã¦ãå¤æ°ã«åããªãã¨ãããã¨ãå¦å®çã«ã¨ããã人ããããã¨æãã¾ããç¹ã«Cè¨èªãJavaãªã©ã®éçè¨èªã使ã£ã¦ãã人ã«ã¨ã£ã¦ã¯ãåããªãã¨ãããã¨ãä¸å®ææã¨ãã¦ç®ã«æ ããã¨ãå¤ãã®ã§ã¯ãªããã¨æãã¾ãã ããã©ããåããªãã¨ãããã¨ã¯ãæ¬å½ã«ç´ æ´ããããã¨ã§ããåããªããã¨ã«ãã£ã¦ãããããã®é¢åãã解æ¾ãããããã§ãã ã©ã®ãããªåã®å¤ã§ãä»£å ¥ã§ãã ã¾ãåºæ¬çãªãã¨ã¨ãã¦å¤æ°ã«åããªããã°ã©ã®ãããªåã®å¤ã§ãä»£å ¥ã§ããã¨ãããã¨ã§ããã¤ã¾ããåãåãã¨ãã«ãã©ã®ãããªåã®å¤ãåãåãã®ããæèããå¿ è¦ãããã¾ããã my $str = 'Hello'; my $num = 1; my $nums = [1, 2, 3]; my $person = {age => 2, name => 'taro'
ã¡ã³ããã³ã¹
ãç¥ãã
é害
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}