Giter Club home page Giter Club logo

Comments (1)

Moderocky avatar Moderocky commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.