-
Notifications
You must be signed in to change notification settings - Fork 323
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
Autoscoping of constructors #8645
Comments
There are multiple ways to approach the problem. One of them is Using UnresolvedSymbolThe idea is to use already existing from Standard.Base import all
type X
A
B x
cons x:X = x.to_text
main = cons .A and yes, the program properly prints Pros
ConsWhile the changes in 23bc507 are simple, alas they don't work for constructors with parameters. Writing
Obviously as
Looks like reusing existing syntax has its downside - as in the |
Jaroslav Tulach reports a new STANDUP for the last Saturday (2024-02-24): Progress: - Custom classloading for GraalVM EE Isolate
Next Day: Autoscoping of constructors |
Jaroslav Tulach reports a new STANDUP for yesterday (2024-02-26): Progress: - autoscoped constructors: #9190
Next Day: Autoscoping of constructors |
Jaroslav Tulach reports a new STANDUP for yesterday (2024-02-27): Progress: - Addressing Radek's comments: #9190 (comment)
Next Day: Autoscoping of constructors
|
Jaroslav Tulach reports a new STANDUP for yesterday (2024-02-28): Progress: - discussing autoscoped constructors with Marcin
Next Day: Speed autoscoping of constructors up
|
Jaroslav Tulach reports a new STANDUP for today (2024-02-29): Progress: - benchmarks label idea: https://discord.com/channels/401396655599124480/1212626875902328842
Next Day: Finalize autoscoping of constructors
|
Jaroslav Tulach reports a new STANDUP for yesterday (2024-03-01): Progress: - polishing autoscoped constructors PR
Next Day: Document and integrate autoscoped constructors |
Jaroslav Tulach reports a new STANDUP for the last Saturday (2024-03-02): Progress: - documentation: 463e33f It should be finished by 2024-03-04. Next Day: Document and integrate autoscoped constructors |
Fixes #8645 by recognizing `~` prefix to constructor names.
We are in. Dmitry reported as a followup issue to make static dropdowns work in the IDE. |
Jaroslav Tulach reports a new STANDUP for yesterday (2024-03-04): Progress: - autoscoped constructors merged: #9190
Next Day: Rewrite autoscoped constructors |
The goal of this task is to avoid:
and just write
e.g. eliminate the need to prefix each constructor name with its type name when it is known from the context.
Join the discussion!
The text was updated successfully, but these errors were encountered: