Giter Club home page Giter Club logo

Comments (10)

sethladd avatar sethladd commented on July 28, 2024

there's no eval. What's the use case? And yes, there must be a main() for a script to run.

from dart-sublime-bundle.

guillermooo avatar guillermooo commented on July 28, 2024

No concrete use case in mind. Let's say you want to print some fancy stuff in a file and you whip up a short dart script in the middle of the file.

I think there are plugins that let you do this with Python and other languages.

I'm adding a lot stuff just in a stream of conciousness way. Tell me when to stop if it gets too annoying! :)

from dart-sublime-bundle.

austincummings avatar austincummings commented on July 28, 2024

You could just create a temporary file with the snippet wrapped in a main function so it would run. You'd also have to bring in the imports the snippet needs.

from dart-sublime-bundle.

guillermooo avatar guillermooo commented on July 28, 2024

Or perhaps simply guarantee some imports where there in the first place. At least for a first implementation.

from dart-sublime-bundle.

austincummings avatar austincummings commented on July 28, 2024

Yeah, could just include all the dart:* imports except dart:html since that only works in a browser.

from dart-sublime-bundle.

sethladd avatar sethladd commented on July 28, 2024

Hm, in an effort to keep our TODO list small, we can marked this as "Not Planned" and close it out for now. The developer can always write a small script and Run it. Dart isn't really set up like Ruby or Python and you need a main() method and often imports to run a snippet of code.

from dart-sublime-bundle.

guillermooo avatar guillermooo commented on July 28, 2024

We don't have a roadmap or any other system to prioritize issues here, but the fact they are listed doesn't mean they will be done any time soon.

I will create a few tags to indicate this more clearly. Later on we can start using the milestones feature to group issues over a timeline.

from dart-sublime-bundle.

sethladd avatar sethladd commented on July 28, 2024

ok, added some priority labels. how do they look?

from dart-sublime-bundle.

guillermooo avatar guillermooo commented on July 28, 2024

@sethladd

LGTM. Should I rename when:Next to something like priority:High? I think we both created new labels at the same time. :-)

from dart-sublime-bundle.

guillermooo avatar guillermooo commented on July 28, 2024

Closing this for now.

from dart-sublime-bundle.

Related Issues (20)

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.