Git Product home page Git Product logo

Comments (6)

Yardanico avatar Yardanico commented on May 23, 2024

@AndreiRegiani I think this should be closed because syntax skins were removed from Nim (devel), so they'll not be available in the next Nim stable version.

from inim.

AndreiRegiani avatar AndreiRegiani commented on May 23, 2024

@Yardanico Thanks for the insight!

@timotheecour from your example, currently we can do it:

>>> proc fun(a: int): auto = return a*2
>>> fun(10)
20 : int

Can also do multiple statements using ;

>>> echo 1; echo 2; echo 3
1
2
3

e.g.

>>> proc moreFun(a, b: int): auto = echo 1; echo 2; echo 3; return a * b
>>> moreFun(2, 5)
10 : int

it seems we don't need syntax skins, right?

from inim.

Yardanico avatar Yardanico commented on May 23, 2024

@AndreiRegiani well, you wouldn't be able to write two procedures on one line, but I don't think someone will try that.

from inim.

juancarlospaco avatar juancarlospaco commented on May 23, 2024

I think with arrow function from future you can write 2 proc on 1 line.

I didnt know skins gonna be removed.

from inim.

Yardanico avatar Yardanico commented on May 23, 2024

@juancarlospaco future module was renamed to sugar because it's just sugar. And no, you can't write two procs on one line with it.

from inim.

juancarlospaco avatar juancarlospaco commented on May 23, 2024

This should be closed, the braces skin is dead.

from inim.

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.