Comments (3)
@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.
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.
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)
- Error parsing negative numbers eg: -1 HOT 1
- Please add a license file HOT 2
- Add defn keyword HOT 1
- Add sourcemap support HOT 1
- Add let HOT 5
- Add JSX support HOT 3
- Compiled Ramdascript does not import the Ramda library HOT 4
- export form HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ramdascript.