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]: Unable to run tests when configurable variables provided by CLI args are not in a particular module
- [Bug]: No code action found for `create variable` inside a annotation HOT 1
- [New Feature]: Support environment variable paths for Config.toml in tests
- [Bug]: `NPE` thrown for `cause()` calls for errors created from API HOT 1
- [New Feature]: Support for Static Code Analysis in Ballerina
- [Improvement]: Convert the runtime representation of nil, int, boolean, string, float, decimal, handle, never and their sub types to use SemTypes
- [Improvement]: Convert the runtime representation of list, map and xml types to SemTypes.
- [Task]: Implement Static Code Analysis Support for Ballerina
- [Improvement]: Slow LS functionalities caused by resolving dependencies in `PackageContext.java` HOT 1
- [Improvement]: Change the test file name created with `bal add <module-name>`
- [Bug]: When defining HTTP error respinse for exsiting record, VScode service Ui always create wrapper record
- [Bug]: [Windows] If ballerina is installed in diffrent drive, VScode plugin does not picked
- Unused variable warning when the variable is used in the request path HOT 1
- [Improvement]: Port nBallerina cell type to jBallerina
- [Task]: Remove `io.ballerina.lang` dependencies from langlibs
- [Improvement]: Change internal implementation of ballerina function mocking to use function pointers
- [Task]: Implement the rewards challenge for the workshop on Microservices and API Integrations HOT 1
- [Task]: Port integrating cells into mapping basic type
- [Task]: Port integrating cells into list basic type
- [Bug]: Tool id is null when the BalTool.toml has a inappropriate character in id field
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.