Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    plexigras
    @plexigras
    i really like the idea but this is just unusable
    plexigras
    @plexigras
    im gonna take a look at livescript
    Bo Lingen
    @citycide
    @plexigras "just unusable" ?
    would appreciate more info if there's room to improve anything
    nothing against livescript, I've considered it before. I can recommend lightscript highly, been using it for a lot and it integrates well with a lot of existing stuff. http://www.lightscript.org
    plexigras
    @plexigras
    this doesnt work
    const double = _.map(_*2)
    console.log(double([1, 2, 3])) // [2, 3, 4]
    Bo Lingen
    @citycide
    nested structures like that are a pain. been working on that since day 1 - just need to figure out how to consider it a new partial context in those cases
    if you're able to I'd appreciate any contributions toward making that work
    plexigras
    @plexigras
    I took a look at livescript which seams nice and apparently i'm not alone in wanting pipe and partial application support. It seams like @wcjohnson is actually working on that.
    here is how it could work both ways
    wcjohnson/lightscript#16
    Bo Lingen
    @citycide
    in lightscript, while I think a pipe operator would be great, the tilde calls are rad
    and are very similar
    foo~bar(10) == bar(foo, 10)
    I'm not sure syntactic partial application will land in the main language. we've been going over that for a while
    you should head over to the lightscript gitter. been quiet for a while but can be active (@rattrayalex recently started a new gig)
    William C. Johnson
    @wcjohnson
    @plexigras I implemented most of what you linked in that thread in my branch of lsc
    It's in alpha still
    2.3.0-alpha.1 on npm
    The "lift operator" is unnecessary it turns out, it really is just a function arrow in lsc
    so the feature is called placeholderArgs
    basically _s in the function body create implicit args to a syntactic no-arg function
    plexigras
    @plexigras
    is there any doc on that?
    William C. Johnson
    @wcjohnson
    not yet, but I can show you some examples
    plexigras
    @plexigras
    that would be great
    there's a playground
    this is alpha so if you bump into any issues let me know
    plexigras
    @plexigras
    i know its really cool
    William C. Johnson
    @wcjohnson
    note that @citycide's plugin coulnd't implement this without being considerably more intrusive, which I assume is why he doesn't
    I'm actually able to modify the parser whereas a pure babel plugin can't
    plexigras
    @plexigras
    placeholderArgs is awesome
    Bo Lingen
    @citycide
    @wcjohnson yep, there's a limit to what a plugin can do with stock babel
    and they got rid of the ability to monkey patch the parser a few versions ago