Giter VIP home page Giter VIP logo

Comments (3)

yosbelms avatar yosbelms commented on July 18, 2024

@rockymadden The issue in this case should be to find a straightforward way to deal with method chaining.
Example: obj.method1().method2().method3()

from ramdascript.

yosbelms avatar yosbelms commented on July 18, 2024

The most common pattern to achieve methods chain in Ramda is to combine pipe and invoker
Example in RamdaScript:

(pipe
    (invoker 1 'map' futureProducingFunction)
    (invoker 1 'parallel' 1)
    (invoker 2 'fork' console.error console.log))

http://ramdajs.com/docs/#invoker

from ramdascript.

yosbelms avatar yosbelms commented on July 18, 2024

I think there is a lot of things to discuss in this thread if you are still interested.

The main idea behind RamdaScript is to use Ramda as a Lisp. So, to add another libraries to the core would mean move away from its le motif. You may notice that RamdaScript has some functions which are not part of Ramda, example: import, alter... Those are to provide interop with JS.

The translation from RamdaScript to JS is plain and straightforward because Ramda is very powerful. So, the hard work of the compiler is the semantic checker and the compilation of functions aiming JS interop to take advantage of the JavaScript ecosystem of which Sanctuary and Fluture are first class citizens.

That said, we may conclude that it is possible to take advantage of Sanctuary and/or Fluture libraries in RamdaScript, example:

(import 'sanctuary' [Just])

(console.log (Just 42))

from ramdascript.

Related Issues (9)

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.