-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autoscoped constructors #9190
Autoscoped constructors #9190
Conversation
...e/runtime-integration-tests/src/test/java/org/enso/interpreter/test/LazyConstructorTest.java
Outdated
Show resolved
Hide resolved
engine/runtime/src/main/java/org/enso/interpreter/runtime/callable/UnresolvedConstructor.java
Outdated
Show resolved
Hide resolved
engine/runtime/src/main/java/org/enso/interpreter/runtime/callable/UnresolvedConstructor.java
Outdated
Show resolved
Hide resolved
engine/runtime/src/main/java/org/enso/interpreter/runtime/callable/UnresolvedConstructor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for addressing my concerns and the thorough tests
...e/runtime-integration-tests/src/test/java/org/enso/interpreter/test/LazyConstructorTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Seems that you are also correctly passing around State
. Once you get to writing Enso tests, please, don't forget to test something like:
type My_Type
False
materialize t:My_Type =
State.get Number . should_equal 42
t.to_text
main =
State.run Number 42 <|
My_Type.materialize ~False
8266b52 introduces new sbt:runtime-benchmarks> benchOnly benchGenerateList
[info] AtomBenchmarks.benchGenerateList avgt 5 4.026 ± 0.252 ms/op
[info] AtomBenchmarks.benchGenerateListAutoscoping avgt 5 2581.386 ± 191.845 ms/op
[info] AtomBenchmarks.benchGenerateListQualified avgt 5 4.294 ± 0.542 ms/op right now the |
7fa1cc0
to
ea194cb
Compare
ea194cb
to
59fa776
Compare
After 6987672 the message is |
Thanks for bringing the topic of |
Personally I think it would be best to have a more specific message, e.g. |
|
||
nothing = not isJust | ||
- **Autoscoped Constructors:** Referencing constructors via their type name may |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documenting autoscoped constructors is hard when most of the surrounding documentation is outdated...
Done in 6e32a3a |
Now we have a missing TruffleBoundary problem... let's concatenate the message via ropes in 60bfc76 |
We are in. Dmitry reported as a followup issue to make static dropdowns work in the IDE. |
Syntax is being changed by |
Pull Request Description
Fixes #8645 by recognizing
~
prefix to constructor names.Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
style guides.