Skip to content

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

411 results
 (80 ms)

411 results

inscala/scala3 (press backspace or delete to remove)

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

You can call :=+ on a var Seq var s: Seq[Int] = Seq() s :+= 1 If you accidentally supply the wrong type of argument, it errors as expected var s: Seq[Int] = Seq() s :+= h // error but gives you a ...

It s useful to have a test that documents the status quo even if the status quo is undesirable. For example, https://github.com/scala/scala3/pull/23276 I chose a random commit to see how tests/pending ...

It would be nice if vulpix revealed the failed diff. (It performs a diff and not a simple strcmp.) For this test suite or group below, there is no indication which script file failed. It would be superlative ...

When this happens. Just re-running a test! Is this a new phenomenon? image

Hi, Any reasons why not to make the following compile: elements.collect: case s: String = s [error] an identifier expected, but case found [error] elements.collect: case s: String = [error] ...
  • joan38posted
    on Nov 23, 2024
  • 3

After my success with https://scastie.scala-lang.org/O4YhUozxSnO2PdXGKwivwQ, I want to create a macro which automatically rejects cases where the match would be non-exhaustive. For A =:!= B, this means ...