7æã«ãScalaéå¼ãã¬ã·ããã¨ããæ¬ãç¿æ³³ç¤¾ããããçºå£²ããã¾ãã
ãã®æ¬ã¯ããã®åã®éããScalaã§ããã°ã©ãã³ã°ãããéã«ãââããããã¨ããçåããå®ç¾æ¹æ³ã調ã¹ãããã®ã¬ã·ãéã§ãããã¡ããScalaã®åºç¤ç¥èã«é¢ããã¬ã·ããè±å¯ã«åãæãã¦ãã¾ãããããå®ç¨çãªã¬ã·ãã«åãå
¥ãã¦ãã¾ãããã¨ãã°ãScalaæ¬ä½ã ãã§ãªãã以ä¸ã®ãããªã©ã¤ãã©ãªããã¼ã«ããã¬ã¼ã ã¯ã¼ã¯ãªã©ãåãä¸ãã¦ãã¾ãã
- Scala IOãDispatchãutil-evalãSJSONãscalaxbã¨ãã£ãã©ã¤ãã©ãªããã¼ã«
- sbtã®ä½¿ãæ¹ã便å©ãªsbtãã©ã°ã¤ã³ã®ç´¹ä»
- ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ï¼ScalaTestãSpecs2ãä¸å¿ã«ScalaCheckãScalaMockãªã©ãã«ãã¼ï¼
- Play 2.0ãAkka 2.0ãçé ã«ScalatraãScalaQueryãCasbahãsprayã¨ãã£ããã¬ã¼ã ã¯ã¼ã¯
ãã¼ã¸æ°ãå
¨é¨ã§600ãã¼ã¸è¶
ã¨ç¸å½ãªããªã¥ã¼ã ã§ãããä¸è¨ã®ãããªåãããã¯ã¯ããããã«ãããªãã®ãã¼ã¸æ°ãå²ãã¦ãããHello Worldã¬ãã«ã§ã¯ãªããå°ãªãã¨ãå®éã«ãããã®ãã¼ã«ããã¬ã¼ã ã¯ã¼ã¯ãæ´»ç¨ããããã®è¶³ãããã¨ãªãç¨åº¦ã®æ
å ±ã«ã¤ãã¦ã¯ã«ãã¼ãã¦ããã¤ããã§ããããã«ãä»é²ã¨ãã¦Scala 2.10ã®æ°æ©è½ã«ã¤ãã¦ãåãä¸ãã¦ãã¾ãã
Scala 2.10ã®æ°æ©è½ã¯ãã¡ããã§ããããã¨ãã°Play 2.0ã«ãã¦ãï¼Play for Scalaã¯MEAPã§ãã§ã«PDFãå
¥æå¯è½ã§ããï¼ãã¡ãã¨å®æãã¦çºå£²ãããåºçç©ã§åãä¸ããã®ã¯ãã®æ¬ãä¸çåãªã®ã§ã¯ãªããã¨æãã¾ãã
å·çã®ãã£ãã
äºã®çºç«¯ã¯æ¨å¹´ç§åã·ã¹ãã ããããçºå£²ããããScalaå®è·µããã°ã©ãã³ã°ãã¨ããæ¸ç±ã§ãã
ã¡ããã©æ¥åã«Scalaãå°å
¥ãã¯ãããé ã§ãå®è·µçãªScalaã®æ¸ç±ã¨ãããã¨ã§é常ã«æ¥½ãã¿ã«ãã¦ããã®ã§ãããæå¾
ãã¦ããå
容ã¨éã£ã¦ã¡ãã£ã¨ãã£ããâ¦ã¨ããæãã§ãããããã§ãèªåãã¡ã®ãããªå
ã
Javaããã£ã¦ããããã°ã©ããScalaã使ãå§ããéã«å¿
è¦ã«ãªãå®è·µçãªæ
å ±ãã¾ã¨ããæ¸ç±ããã£ããããã®ã«ãã¨ãããã¨ã§ç¿æ³³ç¤¾ããã«ç¸è«ããã¦ããã ããã¨ãããéå¼ãã¬ã·ãã·ãªã¼ãºã¨ãã¦å·çããã¦ããã ãããã¨ã«ãªãã¾ããã
ããã¾ã§ãã®æ¸ç±ã®ã¿ã¼ã²ããã¯å½æã®èªåãã¡ãå½æã®èªåãã¡ãããããªæ¬ããã£ããããã£ããªãã¨æããå
容ãå½¢ã«ãããã®ã§ãã
è¦å´ãããã¨
ãã¡ãããã®ããªã¥ã¼ã ããããã¯ãæ°ãããã«ã¯åãã®æ¿ããScalaçéã®ææ°æ
å ±ããã£ããã¢ããããå¿
è¦ããã£ãããªã©ãå·çã¯å°é£ã極ãã¾ããã
sbtãªã©ã¯å·çã«çæãã¦ãã0.7â0.10â0.11ã¨3ã¤ããã¼ã¸ã§ã³ãä¸ãã£ãã®ã§ãã®é½åº¦ãã¼ã¸ã§ã³ã¢ããã«å¯¾å¿ããããPlayã«ããã£ã¦ã¯ä¸åº¦1.2ç³»ã§æ¸ãä¸ããå稿ã丸ãã¨æ¨ã¦ã¦2.0ç³»ã«æ¸ãæããããUnfilteredã¯ãã£ããæ¸ãããã®ã®Scalatraãªã©ã¨ç¨éã被ã£ã¦ããã®ã§åé¤ãããï¼ä»¥åãã®æ¥è¨ã§æ°åã«åãã¦å
¬éããUnfilteredã®ã¨ã³ããªã¯ãã®ã¨ãã®ããå稿ãå
ã«ãããã®ã§ãï¼ãç´¹ä»ãã¦ãããããã¯ãã«ãã°ãããã°ã¬ãã¼ããããããéã£ãããScala 2.10ã®ååã調ã¹ãããã«SIPãçèªããããGitãªãã¸ããªã®ã³ããããã°ã追ãããããâ¦ã
ããã¾ã§åèãå
±èå«ãã¦ä½åãæ¸ç±ãå·çããã¦ããã ãã¦ãã¾ãããéå»æé«ãã³ããã«ç²ãã¾ããããããã°ããæ¬ã¯æ¸ãããããã¾ããããªããæ¯åè¨ã£ã¦ãæ°ããã¾ãããä»åã°ããã¯æ¬å½ã«å¿ã®åºããããæãã¾ãã
æããã¦ãã¼ãºã¯ããã®ãw
ãããªããã§ç²¾éã®å
¨ã¦ãããã¦å·çããã¦ããã ããããã§ãããScalaã¯ã¾ã æ®åãã¦ããã¨ã¯è¨ãé£ãã§ãããæ¥åã§ä½¿ã£ã¦ããã¨ããã±ã¼ã¹ãããå°æ°ã§ãããããããã®æã®å®ç¨æ§éè¦ã®æ¸ç±ãåºãã«ã¯ã¿ã¤ãã³ã°çã«å°ãæ©ãããã®ã§ã¯â¦ã¨ããæ¸å¿µãæããªãã®ãæ£ç´ãªã¨ããã§ãã
ãã ãå人çã«ã¯Javaã«éçã¨ãããéå¡æãæãã¤ã¤ãJavaã使ãç¶ãã¦ããæ¹ãå¤ãã®ã§ã¯ãã¨æã£ã¦ãã¾ãããªã®ã§ããããã£ãæ¹ã
ããã®æ¸ç±ã§Scalaã«èå³ãæã£ã¦ããã ããScalaã®æ®åã«è²¢ç®ãããã¨ãã§ããã°ã¨æã£ã¦ãã¾ãã