Dotty: Scala 3 SIPs, meta-issue for tracking

Created on 9 Oct 2018  路  10Comments  路  Source: lampepfl/dotty

Here is the list of Scala 3 removals/additions/changes that should be turned into SIPs.

For the October meeting (22.10.2018)

For the Nov. meetings

Feel free to edit/refine/etc.

meta

Most helpful comment

This is a gentle reminder:
SIP November meetings start on the 1st Nov. at 9 AM. and go on for the next 2 days.
Many of the Committee members are flying in just for this (total number 8 members joining), and it would be great if they could get some of the writeups beforehand to prepare. Suggestion deadline: October 22nd.
Please don't shoot the messenger (o:

All 10 comments

@lampepfl/dotty-core To avoid duplicate work: if you choose to work on one item, edit the issue by adding your name next to the item

trait parameters already have a SIP: https://docs.scala-lang.org/sips/trait-parameters.html

@sjrd Is it good as is?

Regarding trait/class parameters, there is a change from Scalac. The following code compiles in Dotty, but not Scalac:

class A(a: Int) {
  trait Y {
    val y = a
  }

  class Z(val o: A) extends o.Y {
    val z = a
  }
}

However, trait parameters cannot be used as parent arguments:

class A(a: Int) {
  trait Y {
    val y = a
  }

  trait Z(val o: A) extends o.Y { // error
    val z = a
  }
}

Related discussion https://github.com/lampepfl/dotty/pull/5099#issuecomment-420776248

trait parameters already have a SIP: https://docs.scala-lang.org/sips/trait-parameters.html

Yes, this one looks good :+1:

This is a gentle reminder:
SIP November meetings start on the 1st Nov. at 9 AM. and go on for the next 2 days.
Many of the Committee members are flying in just for this (total number 8 members joining), and it would be great if they could get some of the writeups beforehand to prepare. Suggestion deadline: October 22nd.
Please don't shoot the messenger (o:

Hi there Everyone, I've been speaking with some of you and I found out that this suggestion might be helpful to you as a guideline going forward, proposed by Eugene: https://gist.github.com/xeno-by/fdf652967727f94a9274ff62773acee0

It looks like the documentation shown on dotty.epfl.ch is outdated: it's missing recent specs addition, e.g. http://dotty.epfl.ch/docs/reference/intersection-types-spec.html is 404 but http://lampepfl.github.io/dotty/docs/reference/intersection-types-spec.html is working. @allanrenucci can you have a look ?

Due to issues with github webhooks, even http://lampepfl.github.io/dotty/docs isn't up to date currently, I recommend going directly to the source: https://github.com/lampepfl/dotty/tree/master/docs/docs/reference

I think we can close this one now :smiley_cat:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LaymanMergen picture LaymanMergen  路  3Comments

odersky picture odersky  路  3Comments

deusaquilus picture deusaquilus  路  3Comments

julienrf picture julienrf  路  3Comments

NightMachinary picture NightMachinary  路  3Comments