# \#scala

**URL:** https://forum.canton.network/tag/scala/57.md

[Latest](https://forum.canton.network/latest.md) · [Categories](https://forum.canton.network/categories.md) · [Tags](https://forum.canton.network/tags.md)

---

## [Error while building navigator](https://forum.canton.network/t/error-while-building-navigator/4639)

<div class="topic-metadata">

**Author:** [@Rotoo](https://forum.canton.network/u/Rotoo)\
**Replies:** 5\
**Last updated:** [May 31, 2022, 11:02am UTC](https://forum.canton.network/t/error-while-building-navigator/4639 "2022-05-31T11:02:59Z")

</div>

Hello Damlers, I’m trying to build DAML navigator using bazel and I got the following error: bazel build //navigator/backend:navigator-binary\_deploy.jar No matching toolchains found for types @bazel\_tools//tools/cpp:…

---

## [Additional Language Knowledge Query](https://forum.canton.network/t/additional-language-knowledge-query/2759)

<div class="topic-metadata">

**Author:** [@quidagis](https://forum.canton.network/u/quidagis)\
**Replies:** 3\
**Last updated:** [June 28, 2021, 8:48am UTC](https://forum.canton.network/t/additional-language-knowledge-query/2759 "2021-06-28T08:48:01Z")

</div>

Still working through the Daml\_SDK :hammer\_and\_wrench: and I see there are increasingly more references to Haskell and Scala. While the Haskell references tend to be about the Daml syntax, the Scala references tend to be…

---

## ['Pattern(...) \<-' always adds '.withFilter': Scala ritual](https://forum.canton.network/t/pattern-always-adds-withfilter-scala-ritual/1463)

<div class="topic-metadata">

**Author:** [@Stephen](https://forum.canton.network/u/Stephen)\
**Replies:** 0\
**Last updated:** [October 14, 2020, 3:46pm UTC](https://forum.canton.network/t/pattern-always-adds-withfilter-scala-ritual/1463 "2020-10-14T15:46:57Z")

</div>

DAML and Haskell users are used to writing irrefutable patterns on the left of \<- in a do block, such as to destructure a tuple. However, if you write the same in Scala, for { (a, b) \<- Some((1, 2)) } yield a + b it…

---

## ['v: Ty' in a pattern is not an annotation: Scala ritual](https://forum.canton.network/t/v-ty-in-a-pattern-is-not-an-annotation-scala-ritual/1450)

<div class="topic-metadata">

**Author:** [@Stephen](https://forum.canton.network/u/Stephen)\
**Replies:** 0\
**Last updated:** [October 12, 2020, 1:21pm UTC](https://forum.canton.network/t/v-ty-in-a-pattern-is-not-an-annotation-scala-ritual/1450 "2020-10-12T13:21:44Z")

</div>

Scala style guides tend to carry more than a few silly and counterproductive suggestions. As such, I limit the kinds of expressions I strongly suggest to those with specific semantic consequences. This sort of “ritual”…

---

## ['extends AnyVal' is good for extension methods and…that's it: Scala ritual](https://forum.canton.network/t/extends-anyval-is-good-for-extension-methods-and-thats-it-scala-ritual/1548)

<div class="topic-metadata">

**Author:** [@Stephen](https://forum.canton.network/u/Stephen)\
**Replies:** 0\
**Last updated:** [October 27, 2020, 9:42pm UTC](https://forum.canton.network/t/extends-anyval-is-good-for-extension-methods-and-thats-it-scala-ritual/1548 "2020-10-27T21:42:30Z")

</div>

My post “The High Cost of AnyVal subclasses” covers most of the ground of how, in many practical cases, extends AnyVal actually allocates more instances of the class, rather than fewer, compared to a normal class, with m…

---

## [Scala inference rules-of-thumb](https://forum.canton.network/t/scala-inference-rules-of-thumb/2242)

<div class="topic-metadata">

**Author:** [@Stephen](https://forum.canton.network/u/Stephen)\
**Replies:** 0\
**Last updated:** [March 9, 2021, 5:26pm UTC](https://forum.canton.network/t/scala-inference-rules-of-thumb/2242 "2021-03-09T17:26:58Z")

</div>

Scala has, let’s say, temperamental type inference. But if you keep a mental model of how scalac does inference, more or less, it’s a lot easier to write code that infers, and perhaps more importantly, to design APIs tha…

---

## [Why did you choose JVM for the Daml runtime?](https://forum.canton.network/t/why-did-you-choose-jvm-for-the-daml-runtime/2107)

<div class="topic-metadata">

**Author:** [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Replies:** 5\
**Last updated:** [April 18, 2021, 10:02pm UTC](https://forum.canton.network/t/why-did-you-choose-jvm-for-the-daml-runtime/2107 "2021-04-18T22:02:02Z")

</div>

What was your main motivation when you chose a JVM based language, Scala, for the Daml runtime?
