Skip to content

Commit

Permalink
docs: logo
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Aug 12, 2024
1 parent 2658ba5 commit 8556227
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Binary file added assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions example.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//
// Proposal: Safe Assignments
//
// Be able to handle errors in assignments without throwing exceptions, in a
// easier way and without let variables + nesting try/catch blocks.
//
#
# Proposal: Safe Assignment Operator
#
# Be able to handle errors in assignments without throwing exceptions, in a
# easier way and without let variables + nesting try/catch blocks.
#

const [error, data] ?= await fs.readFile('file.json')
// await fs.readFile[Symbol.result]('file.json')
# await fs.readFile[Symbol.result]('file.json')
const [error, data] ?= fs.readFileSync('file.json')
// fs.readFileSync[Symbol.result]('file.json')
# fs.readFileSync[Symbol.result]('file.json')

if (error) {
handleError(error)
Expand Down

0 comments on commit 8556227

Please sign in to comment.