Comments (1)
Make trigger: implicit if there are no other members.
I'm not entirely sure what you mean by this: if you mean for something that has no other possible entries (I think events don't yet) then I don't really want to do this because I intend everything to have a lot more available entries for metadata (e.g. annotation-replacers) and micro-controlling tasks, plus any extra bits that third-party libraries or DSL versions would like to add
If, on the other hand, you mean if the user has only put a trigger entry (even though there are others available, e.g. in a simple function) -
I considered this at the start but decided against it on the grounds that it makes parsing very muddy.
E.g. if the parser defaults to looking for CODE_BODY elements if the line is not a MEMBER_BODY element it could start incorrectly compiling code that was in fact a mistake or an indentation error.
I've generally been in favour of keeping things quite rigid so that it's easier to know what goes where and what something is doing, however I'll leave this open in case it gets more support from other people and I'll consider it. :)
from byteskript.
Related Issues (11)
- Nested loops don't balance file tree correctly HOT 5
- Unloading a script doesn't remove its class loader HOT 1
- Feature request: Multi-word properties HOT 2
- Compiled jars throwing error and not running.
- String literal matching throws an exception for length < 2 HOT 1
- Question HOT 2
- Unloading a script throws an UnsupportedOperationException HOT 1
- Individual Tests for All Syntax
- Modify ExprFunctionExternal syntax to avoid conflicts with ExprFunctionProperty
- Implement `requiresMainThread` HOT 2
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 byteskript.