Git Product home page Git Product logo

Comments (5)

graydude avatar graydude commented on June 11, 2024

Could you please post an example of how you see gb2 being used? I really see this as a return/exit. On the highest level, it exits the process and if the variable passed is an integer that's the exit code, in functions it is used as a return.

If we don't implement threads, /thread could be a break.

from -g-pl.

daskterpthrad avatar daskterpthrad commented on June 11, 2024

I preferred [expression].jpg for return, especially with the new void value. Any function returning void:

forever alone.jpg

from -g-pl.

graydude avatar graydude commented on June 11, 2024

That would be nice. But I'd still like gb2 for top level stuff.

from -g-pl.

haasn avatar haasn commented on June 11, 2024

Then .jpg shall be break? I assume this means we have to disallow . in names as well?

graydude: As it's in the spec right now, “gb2” will break out of blocks (and as mentioned, the top level file behaves like a huge block, the { and } are added during preprocessing). This means a function like >function { >mfw "this and" gb2 "that" } will return "that" because the { } block surrounding it belongs to the function. It doesn't explicitly deal with functions, a function that simply returns "that" could have been written >function "that". It will thus have the (potentially undesired) effect of also breaking out of conditionals or other blocks.

from -g-pl.

haasn avatar haasn commented on June 11, 2024

Closing this, see issue #12 for more information.

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.