文章分类 -  Scala

摘要:原文:http://www.scala-sbt.org/0.13/tutorial/zh-cn/index.htmlsbt 使用少数的几个概念来支撑它灵活并且强大的构建定义。其实没有太多的概念,但是 sbt 并不完全像其他的构建体系,而且如果你没有看过文档的话,你偶尔将会遇到一些细节问题。这篇入门指... 阅读全文
posted @ 2014-12-30 18:18 Scan. 阅读(2230) 评论(0) 推荐(0)
摘要:原文:http://docs.scala-lang.org/overviews/reflection/overview.htmlOverviewEXPERIMENTALHeather Miller, Eugene Burmako, Philipp HallerReflectionis the abi... 阅读全文
posted @ 2014-12-22 15:56 Scan. 阅读(1459) 评论(0) 推荐(0)
摘要:原文:http://www.artima.com/pins1ed/combinator-parsing.htmlChapter 31 of Programming in Scala, First EditionCombinator Parsingby Martin Odersky, Lex Spoo... 阅读全文
posted @ 2014-12-16 01:19 Scan. 阅读(636) 评论(0) 推荐(0)
摘要:原文:http://hongjiang.info/monads-are-elephants-part1-chinese/翻译 monads-are-elephants 第一部分原文:http://james-iry.blogspot.com/2007/09/monads-are-elephants-... 阅读全文
posted @ 2014-12-10 17:25 Scan. 阅读(220) 评论(0) 推荐(0)
摘要:原文:http://hongjiang.info/semigroup-and-monoid/半群(semigroup)与幺半群(monoid)google到数学里定义的群(group): G为非空集合,如果在G上定义的二元运算 *,满足(1)封闭性(Closure):对于任意a,b∈G,有a*b∈G... 阅读全文
posted @ 2014-12-10 17:01 Scan. 阅读(630) 评论(0) 推荐(0)
摘要:原文:http://hongjiang.info/scala-diagnose-1/scala中很多看似花哨的语法表达,其实背后并不是语言级别的支持,都是些语法糖。当我们拿不准一些语句最终被翻译为什么,可以通过一些编译时参数来帮助我们分析。先看一下scalac编译过程的各个阶段(phases):$ ... 阅读全文
posted @ 2014-12-09 23:31 Scan. 阅读(266) 评论(0) 推荐(0)
摘要:原文:http://blogs.atlassian.com/2013/09/scala-types-of-a-higher-kind/One of the more powerful features Scala has is the ability to generically abstract ... 阅读全文
posted @ 2014-12-07 22:06 Scan. 阅读(170) 评论(0) 推荐(0)
摘要:原文:http://twitter.github.io/effectivescala/index-cn.htmlEffective ScalaMarius Eriksen, Twitter Inc.marius@twitter.com (@marius)[translated by hongjian... 阅读全文
posted @ 2014-12-07 18:02 Scan. 阅读(181) 评论(0) 推荐(0)
摘要:原文:http://en.wikipedia.org/wiki/Scala_%28programming_language%29#cite_note-19Scala (programming language)From Wikipedia, the free encyclopediaScalaPar... 阅读全文
posted @ 2014-12-07 01:33 Scan. 阅读(350) 评论(0) 推荐(0)
摘要:原文:http://docs.scala-lang.org/glossary/#partially-applied-functionalgebraic data typeA type defined by providing several alternatives, each of which c... 阅读全文
posted @ 2014-12-07 00:05 Scan. 阅读(295) 评论(0) 推荐(0)
摘要:原文:http://docs.scala-lang.org/cheatsheets/?_ga=1.20991419.1421951300.1416994328variablesvar x = 5variableGOODval x = 5BADx=6constantvar x: Double = 5e... 阅读全文
posted @ 2014-12-06 23:14 Scan. 阅读(152) 评论(0) 推荐(0)
摘要:原文:http://www.tutorialspoint.com/scala/scala_quick_guide.htmScala, short for Scalable Language, is a hybrid functional programming language. It was cr... 阅读全文
posted @ 2014-12-06 22:40 Scan. 阅读(287) 评论(0) 推荐(0)
摘要:原文:http://docs.scala-lang.org/tutorials/FAQ/collections.htmlForewordThere’s a2.8 collection walk-throughby Martin Odersky which should probably be you... 阅读全文
posted @ 2014-12-06 20:37 Scan. 阅读(432) 评论(0) 推荐(0)
摘要:原文:https://code.csdn.net/DOC_Scala/chinese_scala_offical_document/file/The-Architecture-of-Scala-Collections.md#anchor_0scala容器类体系结构(The Architecture ... 阅读全文
posted @ 2014-12-06 02:38 Scan. 阅读(967) 评论(0) 推荐(0)
摘要:原文:https://code.csdn.net/DOC_Scala/chinese_scala_offical_document/file/Introduction.md#anchor_0简介(Introduction)Martin Odersky和Lex Spoon在许多人看来,新的集合框架是S... 阅读全文
posted @ 2014-12-06 00:06 Scan. 阅读(5232) 评论(0) 推荐(0)
摘要:原文:https://code.csdn.net/DOC_Scala/chinese_scala_offical_document/file/Futures-and-Promises-cn.md#anchor_0Future与Promise(Futures and Promises)Philipp ... 阅读全文
posted @ 2014-12-04 18:28 Scan. 阅读(1927) 评论(0) 推荐(0)
摘要:原文:http://www.scala-lang.org/files/archive/spec/2.11/08-pattern-matching.html#pattern-matching-anonymous-functions BlockExpr ::= `{' CaseClauses `}'A... 阅读全文
posted @ 2014-12-04 16:15 Scan. 阅读(209) 评论(0) 推荐(0)
摘要:原文:https://code.csdn.net/DOC_Scala/chinese_scala_offical_document/file/Implicit-Classes%E4%B8%AD%E6%96%87%E7%89%88.md#anchor_0隐式类(Implicit Classes)Jos... 阅读全文
posted @ 2014-12-04 15:05 Scan. 阅读(284) 评论(0) 推荐(0)
摘要:原文:https://code.csdn.net/DOC_Scala/chinese_scala_offical_document/file/String_Interpolation.md#anchor_0Josh Suereth简介自2.10.0版本开始,Scala提供了一种新的机制来根据数据生成... 阅读全文
posted @ 2014-12-04 14:50 Scan. 阅读(2875) 评论(0) 推荐(0)
摘要:原文:https://code.csdn.net/DOC_Scala/chinese_scala_offical_document/file/Value-Classes-and-Universal-Traits.md#anchor_0引言Value classes是在SIP-15中提出的一种通过继承... 阅读全文
posted @ 2014-12-04 14:18 Scan. 阅读(478) 评论(0) 推荐(0)