GithubHelp home page GithubHelp logo

Allow global execution or not? about -g-pl HOT 10 CLOSED

haasn avatar haasn commented on May 19, 2024
Allow global execution or not?

from -g-pl.

Comments (10)

yate avatar yate commented on May 19, 2024

i'm for top level, for the pro listed (and easier to parse maybe?)

from -g-pl.

graydude avatar graydude commented on May 19, 2024

This is quite a big thing. The real issue here is how the language is going to work; is it going to be compiled or interpreted?

from -g-pl.

haasn avatar haasn commented on May 19, 2024

My implementation is definitely going to be interpreted, due to the runtime variable name resolution rules I've described. Of course, it could be compiled together with a very slow runtime (where every variable reference would perform a runtime call to resolve it)

from -g-pl.

graydude avatar graydude commented on May 19, 2024

If we're going to go interpreted, I think we should allow global execution.

from -g-pl.

haasn avatar haasn commented on May 19, 2024

It's probably the best solution. To solve the “functions need to be defined before they can be used” thing, a user could throw all of his functions into separate files and include them all at the top of the main file.

(We'd need a nice meme-based syntax for inclusion as well)

from -g-pl.

graydude avatar graydude commented on May 19, 2024

How about

install functions.gs

We could have header files called gentoo!

I think we should also take a look at the name of functions. Maybe we can call them Threads or something. But I'll make another issue out of this some time.

from -g-pl.

haasn avatar haasn commented on May 19, 2024

install sounds good. “install gentoo” should be reserved for something silly though, I don't know what yet.

I was thinking threads should be reserved for actual threads, eg. concurrency features that we may wish to implement later on.

Y'know, like /thread could mean “terminate the current thread” and all that. Maybe something else for functions, like “posts”?

from -g-pl.

graydude avatar graydude commented on May 19, 2024

/thread sounds cool.
We could also use an unboxing thread for including, but install sounds better to me.

If we use posts for it, you know we should have a captcha for creating a new function :)

from -g-pl.

haasn avatar haasn commented on May 19, 2024

Nah, but >captcha should be a built-in function which presents a captcha to the user (as popup if graphical environment is found, otherwise as ASCII art), and returns a bool depending on whether or not the user entered it correctly

from -g-pl.

haasn avatar haasn commented on May 19, 2024

I'm closing this issue since it looks like we'll be keeping global execution.

from -g-pl.

Related Issues (17)

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.