Giter VIP home page Giter VIP logo

Comments (11)

felixangell avatar felixangell commented on September 25, 2024

Yeah I'm not even sure why we had a colon in the for loop syntax

from ark.

 avatar commented on September 25, 2024

i think the colon makes it a bit more readable but if you guys are uncomfortable with it, then we could remove it.

from ark.

felixangell avatar felixangell commented on September 25, 2024

It just doesn't seem right, kind of useless.

from ark.

 avatar commented on September 25, 2024

for int x (0, 10) looks like the whole thing is a collection of keywords idk why. for int x:(0, 10) seems a bit more cleaner.

from ark.

andars avatar andars commented on September 25, 2024

I agree with @CaptainChloride. Having nothing in between looks odd. How about for int x in (0,10)?

from ark.

 avatar commented on September 25, 2024

the colon would be a better fit and relatively faster to put in, don't you think?

from ark.

felixangell avatar felixangell commented on September 25, 2024

@andars I dunno, I think the "in" makes the statement too verbose. But I also agree that having nothing to space it out makes it look like a sentence.

from ark.

 avatar commented on September 25, 2024

How about making for int x : (0,10) standard styling?

from ark.

 avatar commented on September 25, 2024

Also, since we already know the type of the right side, perhaps we could allow for auto typing: for x : (0,10). (x is implicitly declared as a variable of type int in this case).

from ark.

 avatar commented on September 25, 2024

That's a good idea yeah... @freefouran what do you think?

from ark.

felixangell avatar felixangell commented on September 25, 2024

Yeah sounds good.

from ark.

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.