futurescript
futurescript copied to clipboard
A future-style language.
`a ifnull: 8` equivalent to `a = a || 8` or `a ||= 8` in ruby. For `fus` it could be `a: self | 8` or perhaps `a: ? 8`...
Since our code should be as clear and concise as possible and avoid boilerplate! So I'd like to use [polymer decorators](https://github.com/gertcuykens/decorators) with FutureScript for beautiful, efficient frontend dev. ``` @customElement('test-element')...
Thought it would be cool if comments were passed through for documentation and usage such as enabling [Flow type annotations](https://flowtype.org/docs/type-annotations.html#_), perhaps as an extension or plugin. Well, ideally I'd suggest...
Would be pretty simple reusing [tailored](https://github.com/elixirscript/tailored) also used by [elixirscript](https://github.com/elixirscript/elixirscript) [elixir-guard-clauses](http://keathley.io/2016/04/09/elixir-guard-clauses.html) ``` greet: guard({age: age}) when kid?(age) -> "just a kid" greet: guard(_) -> "regular person" ``` The `when` would...
Perhaps be inspired by [most](https://github.com/cujojs/most) [fantasyland](https://github.com/fantasyland/fantasy-land) and [static-land](https://github.com/rpominov/static-land) for true Functional power using Monoids! Used by [PureScript](purescript.org) to great effect (from Haskell)
For FRP, look at various [frp](https://github.com/stoeffel/awesome-frp-js) solutions I suggest using a pipe equivalent `+>` for working with streams (piping). `+>` Could perhaps just be an alias for `.` but be...
Would be awesome to be forced to use immutable objects and `const` only, perhaps by scope? An extension could allow choosing which [immutable library](https://gist.github.com/jlongster/bce43d9be633da55053f) to use similar to how `..`...
Would be nice with a "keep comments mode" in the version line, to turn it on add `comments` keyword or maybe `keep comments` which could be extended to other keep...
Use `?` to indicate function returning boolean ``` admin?: x -> x.role = 'admin' admin? user ``` Use `!` to indicate function with side effect ``` write-user!: user -> write-file...
https://www.zenhub.com