https://github.com/shurko0x4cfd/raffinade
CoffeeScript/JavaScript library for my distinctive code style
https://github.com/shurko0x4cfd/raffinade
coffeescript point-free prefix-notation tacit
Last synced: about 2 months ago
JSON representation
CoffeeScript/JavaScript library for my distinctive code style
- Host: GitHub
- URL: https://github.com/shurko0x4cfd/raffinade
- Owner: shurko0x4cfd
- License: other
- Created: 2022-07-03T20:24:16.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-08T18:01:34.000Z (almost 2 years ago)
- Last Synced: 2025-02-01T23:14:23.773Z (4 months ago)
- Topics: coffeescript, point-free, prefix-notation, tacit
- Language: JavaScript
- Homepage:
- Size: 293 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Raffinade
Effort to transform CoffeeScript to prefix language. In order to avoid nested constructions and achieving code elegance.
Example issue and approaches to resolve:
```CoffeeScript
# Issue
# Nested construction, cumbersomityvalue = (some_function argument)[key]
``````CoffeeScript
# Approach### Get property ###
gp = (key, obj) -> obj[key]
``````CoffeeScript
# Resultvalue = gp key some_function argument
``````CoffeeScript
# CS produce code returns lalest expression, altought some time need not this
# return, therefore this code is redundant. Possible to append undefined in
# last line, but this require one linesome_function = ->
some_code
undefined# Looks better idea use prefix function ala JS void operator
v = -> undefined # Kind of JS void
some_function = -> v some_code
```