Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions mixed_declarations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ECMAScript proposal: Mixed declarations
- [Motivation](#motivation)
- [High-level API](#high-level-api)

## Motivation
Javascript declarations are boring. There is no any fun or game there. Let's do mixed declarations, so it'll be able to combine `let` and `const`

## High-level API

```js
const let foo = "any value" // now there is a 50% chance that foo can be reassigned
const let let bar = "another one" // now there is a 66.6% chance that bar can be reassigned
const const const let baz = "the last one" // only 25%
```