Skip to content

discussions Search Results · repo:scala/scala3 language:JavaScript

414 results
 (211 ms)

414 results

inscala/scala3 (press backspace or delete to remove)

Hi team, I m very new here, so apologies if I didn t provide enough details. I m wondering if you have given any thoughts around supporting something like rust if let The basic idea is to allow for destructuring ...

Consider the following Scala 3 snippet featuring a normal class and a case class, each with an auxiliary constructor: class PersonClass(val name: String, val age: Int) { def this(first: String, last: ...

I can never remember if it is --init-repl-script or --init-scrip-repl or --repl-init-script... And it is not obvious that I need to check --help-repl not --help or --full-help It would be nice to be able ...

Hi, Can anyone point me to where I can download the API docs for Scala 3? I can see there is a download link included in the other resources section of the 2.* downloads, but can t find the same for ...

Hey folks, I m working at a company with dozens of Scala developers, and we recently started adopting Scala 3. So far, so good—except for the mixing of Scala 2 and Scala 3 syntax in Scala 3 codebases. ...

Scala 2 is helpful (under -Xlint) scala val xs = mutable.HashMap( a - 42L) val xs: scala.collection.mutable.HashMap[String,Long] = HashMap(a - 42) scala xs.getOrElse( b , 0) ^ warning: ...

Search Keywords inline NoClassDefFoundError Summary When a package-private function is inlined outside its package, a NoClassDefFoundError (ClassNotFoundException) occurs at runtime. Is this the expected ...

e.g. this can prevent hard to immediately spot infinite recursion errors if you refactor from one canonical type class for Foo to several derived ones, all based on the underlying type opaque type Foo ...

A bit related to https://github.com/scala/scala3/issues/7871 but I think the question warrants being discussed on a higher level. Python has https://github.com/python/typeshed and TypeScript has https://github.com/DefinitelyTyped/DefinitelyTyped ...

Hi! I ve been benchmarking performance of Array.map and Array.foreach in Scala and found that their implementations can be made significantly faster — map by up to 3.5×, and foreach by up to 2× — by simplifying ...
  • 2Pitposted
    on Aug 1
  • 6