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 10,572 public repositories matching this topic...

adriancole
adriancole commented Aug 29, 2018

Let's support at least reading "b3" header from a single string, most commonly traceid-spanid-1
It would also be nice to support optionally writing this, especially in message providers or others with constrained environments.

Expected behavior

As discussed on openzipkin/b3-propagation#21 and first implemented here: https://github.com/openzipkin/brave/blob/master/brave/src/main/java/bra

lila
tomers
tomers commented Nov 9, 2020

I run gatling.sh from a script. I encountered multiple occasions where Gatling failed, but the exit code was 0.

Expected behavior: exit code should be non-zero
Observed behavior: exit code 0

gatling.sh ....

        at scala.App.main(App.scala:80)
        at scala.App.main$(App.scala:78)
        at io.gatling.compiler.ZincCompiler$.main(ZincCompiler.scala:40)
        at io.gatli
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)?

hepin1989
hepin1989 commented Sep 25, 2020

I just tried it out in Dotty for https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#template-literal-types

~ dotr
Starting dotty REPL...
scala> type Color = "top" | "middle"
// defined alias type Color = "top" | "middle"

scala> def test(color:Color) = println(color)
def test(color: Color): Unit

scala> test("middle")
middle

scala> test("middel") 

Created by Martin Odersky

Released January 20, 2004

Website
www.scala-lang.org
Wikipedia
Wikipedia
You can’t perform that action at this time.