question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Experimental annotation behaviour redesign

See original GitHub issue

We need to rethink how @experimental should work to:

  • fix the problems with bootstrapping the compiler (until then 3.0.0 has to be used as the reference compiler)
  • eliminate strange behaviours and unexpected limitations (e.g. https://github.com/lampepfl/dotty/issues/13091)
  • take into account the expectations of the community regarding this feature

Related discussion: https://contributors.scala-lang.org/t/experimental-annotation-behaviour-redesign/5187

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:34 (23 by maintainers)

github_iconTop GitHub Comments

1reaction
smartercommented, Aug 16, 2021

LGTM (I made a few small edits)

The RHS of an experimental def, val, var, given or type are experimental scopes.

This should be “is an experimental scope” or the beginning of the sentence should be changed (same in a few other rules)

Question: Should we disallow @experimental def main(…)?

I think it’s not too big a deal to leave that escape hatch in since at the point where you’re adding@experimental everywhere in your program it should be obvious you’re doing something weird 😃

1reaction
nicolasstuckicommented, Aug 13, 2021

I think rule 1 should also mention given

Updated and added other missing definitions

Read more comments on GitHub >

github_iconTop Results From Across the Web

Experimental annotation behaviour redesign - Language Design
Introducing new experimental definitions requires annotating them with @experimental and you also need to annotate all subclasses of classes or ...
Read more >
3.1.0 Milestone · GitHub
Allow experimental language imports in experimental scopes ... Experimental annotation behaviour redesign stat:needs spec. #13112 by prolativ was closed on ...
Read more >
Design annotations to improve API discoverability
The main purpose and advantage of having these annotations is to enable integrated development en- vironments (IDEs) to assist API users with ...
Read more >
Creating and Exploring Semantic Annotation for Behaviour ...
The annotation of sensor datasets describing human behaviour plays an important role in any system aiming to analyse the user behaviour.
Read more >
rePROBE: Workflow for Revised Probe Assignment and ...
This study provides a comprehensive workflow implemented in an R package (rePROBE) to assign the entire probes and to annotate the probe sets...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found