Comments (1)
We currently have a slightly weird thing going on here: the ONLY top level symbols should be accessed with via the package name. The only top level things are services, connectors, functions, types, type convertors and constants.
Thus accessing an action, which is inside a connector directly by saying PackageName.ActionName is rather wrong.
We will instead introduce a new character to separate the package name from the top level concept name as follows:
PackageName:ConnectorName
PackageName:ServiceName
PackageName:FunctionName
etc..
Now to access a particular action within a connector, you have to call it with:
PackageName:ConnectorName.ActionName
This is also consistent with field accessors being done with ".".
(Discussed between most of the people in the room.)
from ballerina-lang.
Related Issues (20)
- [Bug]: `bal run --help` shows a wrong text HOT 1
- [Bug]: The `typeOf` API returns a `TypeDescriptorTypeSymbol` instead of an `IntersectionTypeSymbol` for a narrowed variable
- [Bug]: No such field exception for client method call in a test function HOT 4
- [Improvement]: Add directory content validation for `bal clean --target-dir <path>` option
- [Bug]: Xml to record conversion not working
- [Task]: Cleanup the semtype generic function implementation
- [Improvement]: Improve the test code generated for service template
- [Improvement]: Remove the tool option validation warning when there are no tool options
- [Bug]: Ambiguous compiler error when instantiating a class that does not exist
- [Improvement]: Simplify the package locking mode deriving logic
- [Bug]: Hash verification failing for `bal tool pull` HOT 2
- [Improvement]: Expose remote management build option as runtime API
- [Improvement]: Improve generated service and listener name for control plane
- [Bug]: `Add isolated qualifier` code action is not provided for start actions
- [Task]: Evaluate applying Java virtual threads for Strands
- [Bug]: Parent-Child span inheritance has not been set properly for asynchronous function calls
- [Improvement]: Implement the `getLocation` API for the structured type symbols
- [Bug]: Invalid parsing of an xml name pattern which is invalid and has an xml namespace
- [Bug]: Record literal expression error evaluation create infinite loop HOT 1
- [Improvement]: Bal tool to be written in ballerina
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ballerina-lang.