# Dotty Language Survey Results

**URL:** <https://contributors.scala-lang.org/t/dotty-language-survey-results/3886>\
**Category:** Language Design\
**Created:** [December 19, 2019, 6:40pm UTC](https://contributors.scala-lang.org/t/dotty-language-survey-results/3886 "2019-12-19T18:40:17Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![rjolly](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/rjolly/32/1737_2.png) [@rjolly](https://contributors.scala-lang.org/u/rjolly)\
**Post date:** [April 10, 2020, 9:52pm UTC](https://contributors.scala-lang.org/t/dotty-language-survey-results/3886/21 "2020-04-10T21:52:37Z")

</div>

> [@SethTisue](#):
>
> and my impression is that most Scala programmers feel the same way

Not me. I’ve always thought we should not have discarded the ability to do `myCode.filter(! _.isWhitespace)` and have it still compile, like in Java or C.

---

<div class="post-metadata">

**Author:** ![AMatveev](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/amatveev/32/847_2.png) [@AMatveev](https://contributors.scala-lang.org/u/AMatveev)\
**Post date:** [April 10, 2020, 10:27pm UTC](https://contributors.scala-lang.org/t/dotty-language-survey-results/3886/22 "2020-04-10T22:27:32Z")

</div>

> [@eyalroth](#):
>
> I think it really is a matter of opinion

I agree with you.  
IMHO:  
Indentation-blocks stems is terrible stuff for me when I work with larger dsl oriented block of code.  
It is just a pain without any profit when I need to do simultaneously:

- refactoring
- copy\paste
- use language injection
- use more compact declarative style

There is opinion that good editor can help, I do not believe in that, there are always lack of good editors right here If you need work with multiple languages, for exampe changing between sql editor, diff tools, remote debugging I am not sure there will be good support for such stuff in nearest future. So I don’t like unnecessary grammar complication in such cases.

---

<div class="post-metadata">

**Author:** ![AMatveev](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/amatveev/32/847_2.png) [@AMatveev](https://contributors.scala-lang.org/u/AMatveev)\
**Post date:** [April 10, 2020, 10:44pm UTC](https://contributors.scala-lang.org/t/dotty-language-survey-results/3886/23 "2020-04-10T22:44:33Z")

</div>

> [@curoli](#):
>
> Being able to omit brackets around a single expression is something completely different from being able to replace brackets by significant indentation.

Well said.  
IMHO: If it were not so, yaml would supersede json in most cases(at least it is more simple comparison)

---

<div class="post-metadata">

**Author:** ![som-snytt](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/som-snytt/32/595_2.png) [@som-snytt](https://contributors.scala-lang.org/u/som-snytt)\
**Post date:** [April 10, 2020, 10:59pm UTC](https://contributors.scala-lang.org/t/dotty-language-survey-results/3886/24 "2020-04-10T22:59:01Z")

</div>

```
$ skala -Xsource:3
Welcome to Scala 2.13.2-20200410-000412-32c4e80 (OpenJDK 64-Bit Server VM, Java 11.0.5).
Type in expressions for evaluation. Or try :help.

scala> {
     | val x = 2
     | + 3
     | println(x)
     | }
5

scala>
```

---

<div class="post-metadata">

**Author:** ![LPTK](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/lptk/32/1620_2.png) [@LPTK](https://contributors.scala-lang.org/u/LPTK)\
**Post date:** [April 11, 2020, 9:02am UTC](https://contributors.scala-lang.org/t/dotty-language-survey-results/3886/25 "2020-04-11T09:02:55Z")

</div>

> [@SethTisue](#):
>
> Consider the following program:
> 
> ```auto
> val x = 2
> + 3
> println(x)
> 
> ```
> 
> in Scala 2, this warns (“warning: a pure expression does nothing in statement position; multiline expressions may require enclosing parentheses”) and prints 2. But in Dotty, it prints 5, as expected.

I agree this is awesome, but it’s a little concerning that this:

```auto
  val x = 2

    + 3
  println(x)

```

prints `2` without a warning (at least in Scastie).

> [@rjolly](#):
>
> I’ve always thought we should not have discarded the ability to do `myCode.filter(! _.isWhitespace)` and have it still compile, like in Java or C.

This is not true. In Java, `int i = 0` and `inti=0` mean different things.

[Previous page](https://contributors.scala-lang.org/t/dotty-language-survey-results/3886.md?page=1)
