Giter VIP home page Giter VIP logo

expression-language-arrowfunc's Introduction

Hi there 👋

expression-language-arrowfunc's People

Contributors

uuf6429 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

expression-language-arrowfunc's Issues

Syntax choice

Cool project! Just found it by coincidence. 🤘

Is there a particular reason you chose to use -> instead of => for the arrow (e.g. ambiguity)?
Most popular languages use the => operator (JavaScript, C#). There's also an RFC for PHP that also suggests using the => operator.

Additionally, single parameters are often not required to be wrapped in parenthesis.

Are you planning on creating a pull request for the official Symfony repo? If so, I think this would be the most intuitive syntax for most users.

Ability to change lambda operator

I'm still unsure about which operator to use - having initially opted for the one often used in mathematics (->), but also in C++11 and Java.

However, it seems that quite a few languages use the => (eg; C#, Hack) and others planning to use this (ES6, PHP)

With this in mind, it would be useful if the component user would have the ability to select the operator of choice.

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.