docs.scala-lang icon indicating copy to clipboard operation
docs.scala-lang copied to clipboard

The Scala Documentation website

Results 204 docs.scala-lang issues
Sort by recently updated
recently updated
newest added

https://github.com/scala/docs.scala-lang/blob/1ae6d880f8a2298ab5150e88740ce5672b16a89a/_overviews/core/futures.md?plain=1#L1184 It should be like: ``` completion match { case Failure(exception) if exception.getCause != null => println(s" caused by ${exception.getCause}") case _ => () }

The example at [create-integer-and-string-variables](https://docs.scala-lang.org/scala3/book/scala-for-python-devs.html#create-integer-and-string-variables), for Scala uses `immutable` variable `x` to re-define it from `Int` to a `String` type. Solution would be to either use another variable say `z` or...

The Scala 3 book's section on [writing methods that use type classes](https://docs.scala-lang.org/scala3/book/ca-type-classes.html#writing-methods-that-use-the-type-class) only shows how to specify a single type class as a parameter's bound. How to specify multiple bounds...

The [Scala for Python Developers](https://docs.scala-lang.org/scala3/book/scala-for-python-devs.html) page does have [a section](https://docs.scala-lang.org/scala3/book/scala-for-python-devs.html#comprehensions) comparing Scala's comprehensions to Python's list comprehensions, but (AFAICT) lacks any information about what Scala's analogue is to Python's [generator...

The page for [multiple parameter lists](https://github.com/scala/docs.scala-lang/blob/main/_tour/multiple-parameter-lists.md) shows one use case of multiple parameter lists being to drive type inference, and it shows an example that it claims does not compile...

Updates the "pure functions" overview at https://docs.scala-lang.org/scala3/book/fp-pure-functions.html - adds clarification that accessing *immutable* hidden state is still considered pure - adds an example of this in form of a closure

An excellent clarification on when to use "parameters" vs "arguments": https://stackoverflow.com/questions/156767/whats-the-difference-between-an-argument-and-a-parameter?page=1&tab=scoredesc#tab-top

For example on the [A Taste of Scala](https://docs.scala-lang.org/scala3/book/taste-intro.html) page: ![Screenshot 2024-11-20 at 15-37-37 A Taste of Scala Scala 3 — Book Scala Documentation](https://github.com/user-attachments/assets/1d0bfe4d-3c50-4535-9fca-78b208be72d9)