scala / slip

obsolete — archival use only
67 stars 15 forks source link

Backticks in String Interpolation SIP tracking #3

Closed dickwall closed 8 years ago

dickwall commented 9 years ago

Contact Kevin Wright re: current state of Backticks support in String interpolation

dickwall commented 9 years ago

Kevin has already been contacted and has taken action on this. Need someone, perhaps Kevin, to summarize current status in email to scalaslip@gmail.com, or on here, or both prior to next meeting ideally

dickwall commented 9 years ago

Som Snytt has an impl at https://github.com/scala/scala/pull/4663

dickwall commented 9 years ago

Previous PR: https://github.com/scala/scala.github.com/pull/297#issuecomment-125258784

kevinwright commented 9 years ago

My main observation when proposing this was that "wrap it in backticks" is a common idiom within the Scala language for making anything valid as an identifier.

Wrapping something in backticks to make it valid has now become a broadly adopted pattern, and uniquely not honouring this in string interpolation breaks the principle of least surprise.

SethTisue commented 9 years ago

mailing list thread: https://groups.google.com/d/msg/scala-internals/5iW7BcNa41E/3jhwUSFwMyYJ

dickwall commented 9 years ago

Request for status update for Sept 10th SLIP meeting

dickwall commented 8 years ago

Rejected due to lack of support overall, and concerns that adding this conformance will actually make the rules less consistent (Martin's argument), as in: there are going to be differences in what identifiers are valid anyway, his view is that it is better to have just one valid set of identifiers off the bat - alpha-numerics, and put anything else inside of {}s like now.