Giter VIP home page Giter VIP logo

ramdascript's Issues

Add defn keyword

It would be nice if there is a keyword for
(def hello fn [] "Hello")
like in clojure
(defn hello [] "hello")

Futures/Promises thoughts

I apologize in advance that this is not an actual issue, but more of a conversation if you are willing to entertain/have the bandwidth. I am curious about your thoughts on how one might approach adding Future (https://github.com/fluture-js/Fluture), Promise, and/or async/await support to the core language. To the novice lisper/ramdascripter, it seems like a few items might be addressed/thought through first:

If going the Future route and you added Fluture functions to the core ramdascript language, like fork (https://github.com/fluture-js/Fluture#fork), you could then do it fairly easily in ramdascript right? Something akin to:

pipe(
  map(futureProducingFunction),
  parallel(1),
  fork(console.error, console.log)
)([
  'https://example.com/api0',
  'https://example.com/api1',
  'https://example.com/api2'
]);

Compiled Ramdascript does not import the Ramda library

When I tried to compile Ramdascript to javascript with the following command:
ram compile -src server/server.ram -format none

It compiled without error however when trying to run the file it throws an error that R is not defined. This is due to the fact that the compiled file never imports the ramda library. A workaround for now is to manually add the line 'R = require('ramda') at the top of each compiled file but it's not ideal.

Add let

Perhaps there is a way to accomplish this already that I am not seeing?

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.