Skip to content
#

Scala

scala logo

Scala is a general-purpose programming language providing support for functional programming and a strong static type system. Designed to be concise, many of Scala's design decisions aimed to address criticisms of Java.

Here are 11,409 public repositories matching this topic...

lila
benediktwerner
benediktwerner commented Sep 19, 2021

To make multi-chapter guide-type studies work a bit better when a chapter isn't an interactive exercise. Maybe at the end of the move list, probably fixed to the bottom (if there aren't enough moves to start scrolling)?

In "hide moves" mode it maybe should only show up after the last move. Not sure about "practice vs computer". Maybe only after a checkmate?

hamdiallam
hamdiallam commented Jul 19, 2021

Compiler version: 3.0.1

Problem

Given

Scala

object Foo {
  type IntGetter = () => Int
  def getFunc(): IntGetter = () => 1
  def getFunc2(): () => Int = () => 1
}

The generic signatures generated (as seen using javap) are:

public static scala.Function0 getFunc();
public static scala.Function0<java.lang.Object> getFunc2();

Whereas in Scala 2 w

NeQuissimus
NeQuissimus commented Jan 7, 2019

I just came across the fact that a Show[Throwable] exists.

  1. It is not wired up into import Scalaz._, one needs to import scalaz.std.java.throwable._
  2. It discards the stack trace entirely.

What's going on with this? :D
Is it OK if I fix both of these (for 7.2 and 7.3)?

tarossi
tarossi commented Aug 31, 2021

steps

Using Scala 2.12.14 + SBT 1.5.x
Just include this import in your source

import java.time.temporal.ChronoUnit.MILLIS.{between => millisBetween}

problem

java.lang.NullPointerException
	at xsbt.Dependency$DependencyTraverser.lookupImported$1(Dependency.scala:394)
	at xsbt.Dependency$DependencyTraverser.$anonfun$traverse$1(Dependency.scala:396)
	at xsbt.Dependency$De

Created by Martin Odersky

Released January 20, 2004

Website
www.scala-lang.org
Wikipedia
Wikipedia