A compile-to-JS programming language.
npm install -g saikobee/squiggle
Put the following in hello.squiggle
:
console.log("Hello, world!")
Then run:
squiggle hello.squiggle -o hello.js
node hello.js
This project uses the Contributor Covenant as its code of conduct.
Yes.
- It's fun
- CoffeeScript is too complicated
- Works around annoying JavaScript features
- Easy JS interop (no marshalling data structures between languages)
- Immutability (
Object.freeze
) - No variable rebinding (
const
) - Function arity checking (
wrong number of arguments
) - Exceptions on bad property access (
[][1]
,{}.foo
, etc.) - All files are CommonJS modules
- Expression oriented
- Objects can have computed properties
- Easy syntax