scala
Java or Scala: creating new types at runtime
How do I define new types at runtime? I have a factory method that needs to create a new instance of this.type with a marker interface. The mark开发者_如何学Goer interface was not mixed in at compile[详细]
2023-04-13 09:41 分类:问答Scala List.updated
I am curious about List.updated. What is it\'s runtime? And how does it compare to just changing one element in an ArrayBuffer? In the background, how does it deal with copying all of the list? Is thi[详细]
2023-04-13 08:51 分类:问答Reading a large file in functional scala
I\'m attempting to process a large binary file with scala. If possible I\'d like to use a functional approach. My main method for this looks like this right now:[详细]
2023-04-13 07:54 分类:问答bounded generics in Scala (as <E extends MyClass> in Java )
I\'m migrating an app from java to Scala. In java I have somethng like abstract class CommonObjectInfo{//...}[详细]
2023-04-13 07:16 分类:问答How can I validate fields in a table in Vaadin with Scala
How can I validate a field in a vaadin table? For example the year field with a regex: val persons: BeanContainer[Int, Person] =[详细]
2023-04-13 05:58 分类:问答Ruby vs Scala - pros and contras of each one [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answe开发者_如何转开发rs to be supported by facts, references,or expertise, but this question will likely[详细]
2023-04-13 05:49 分类:问答Type theory: type kinds
I\'ve read a lot of interesting things about type kinds, higher-kinded types and so on. By default Haskell supports two sorts of kind:[详细]
2023-04-13 05:29 分类:问答Accessing scala object fields from java
I\'m having trouble access开发者_开发百科ing the fields of a scala object from java. Scala: object TestObject {[详细]
2023-04-13 05:12 分类:问答Scala Interpreter scala.tools.nsc.interpreter.IMain Memory leak
I need to write a program using the scala interpreter to run scala code on the fly. The interpreter must be able to run an infinite amount of code without being restarted. I know that each time the me[详细]
2023-04-13 04:52 分类:问答Profiling scala for loops using hprof
Word on the street is that for loops in scala are slower than while loops. Slow: for (i <- 0 until 10000) {[详细]
2023-04-13 04:42 分类:问答