enso-org / enso

Hybrid visual and textual functional programming.
https://enso.org
Apache License 2.0
7.35k stars 323 forks source link

Add ability to export operators by name #10370

Open Akirathan opened 3 months ago

Akirathan commented 3 months ago

10258 disallows from ... export all syntax. Now, we have to export all extension and conversion methods by name. Operators cannot be exported by name. from project.Mod export * fails with unsupported syntax error.

Text.* defined in Extensions.enso is not explicitly exported, but all the tests work, because that extension method (operator) is resolved at runtime in the Extensions module. However, we should not rely on that and rather provide a proper way to export operator symbols explicitly by symbol.