All Projects โ†’ OliverBrotchie โ†’ optionals

OliverBrotchie / optionals

Licence: MIT license
Rust-like error handling and options for TypeScript and Deno!

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to optionals

deno-drash-realworld-example-app
Deno + Drash RealWorld example app
Stars: โœญ 56 (-42.27%)
Mutual labels:  deno
merlin
Testing and Benchmarking framework for deno ๐Ÿง™โ€โ™‚๏ธ
Stars: โœญ 46 (-52.58%)
Mutual labels:  deno
deno bindgen
Simplified glue code generation for Deno FFI libraries written in Rust.
Stars: โœญ 142 (+46.39%)
Mutual labels:  deno
go-errors
A super tiny package for error encapsulation in idiomatic Go
Stars: โœญ 14 (-85.57%)
Mutual labels:  error-handling
deno-task-runner
Task runner for deno
Stars: โœญ 31 (-68.04%)
Mutual labels:  deno
vscode-deno-extensionpack
Deno VS Code Extension Pack
Stars: โœญ 12 (-87.63%)
Mutual labels:  deno
express-error-slack
Express error handling middleware for reporting error to Slack
Stars: โœญ 14 (-85.57%)
Mutual labels:  error-handling
event
๐Ÿ“† Strictly typed event emitter with asynciterator support
Stars: โœญ 30 (-69.07%)
Mutual labels:  deno
deno install
Deno ๅฎ‰่ฃ…ๅ™จ๏ผˆๅ›ฝๅ†…ๅŠ ้€Ÿ๏ผ‰
Stars: โœญ 58 (-40.21%)
Mutual labels:  deno
erc20-balance
๐Ÿ’Ž Get 2000+ ERC-20 token balances with JavaScript. Supports Node.js and Deno
Stars: โœญ 18 (-81.44%)
Mutual labels:  deno
raygun4android
Android crash reporting provider for Raygun
Stars: โœญ 19 (-80.41%)
Mutual labels:  error-handling
fortran-error-handler
Comprehensive error framework for applications requiring functional and robust error handling, utilising the power of modern object-oriented Fortran.
Stars: โœญ 19 (-80.41%)
Mutual labels:  error-handling
progress
ProgressBar in terminal for deno
Stars: โœญ 39 (-59.79%)
Mutual labels:  deno
database
towards a common interface for SQL databases in Deno TypeScript
Stars: โœญ 15 (-84.54%)
Mutual labels:  deno
espresso
Minimal web framework for Deno
Stars: โœญ 43 (-55.67%)
Mutual labels:  deno
logrocket deno api
A functional CRUD-like API with Deno and Postgres
Stars: โœญ 23 (-76.29%)
Mutual labels:  deno
deno-fetch-event-adapter
Dispatches global fetch events using Deno's native http server.
Stars: โœญ 18 (-81.44%)
Mutual labels:  deno
api-deno-compiler
This is an api that execute your deno code and send you the output
Stars: โœญ 13 (-86.6%)
Mutual labels:  deno
swagger2ts
๐Ÿ’— ไปŽ Swagger ็”Ÿๆˆไผ˜้›…็š„ Typescript ไปฃ็ . Generate elegant typescript code from swagger.
Stars: โœญ 17 (-82.47%)
Mutual labels:  deno
denoffi
Deno Foreign Function Interface.
Stars: โœญ 37 (-61.86%)
Mutual labels:  deno

Rust-like error handling and options for TypeScript and Deno!

This module allows you to remove null and undefined from your projects with the help of ES6 Symbols and helper functions. Inspired by Rust's Option, Result and match statments.

PLEASE NOTE: This library will soon be moving to a new re-implementation that is closer to Rust's implementation.

Why should you use Optionals?

The standard practice of returning null or undefined when no other value can be returned, leaves something to be desired as there is no way to tell where in the code said value came from. Rust's implementation of error handling also has many benefits that cannot be expressed in the normal try catch JS pattern.

This module provides a minimal, fast and simple way to create expressive functions and perform better pattern matching! ๐Ÿš€

Type Systems

Optionals provides two type systems, Hard or Soft typing.

  • Hard - Return types are actual values. Strict typing with rust-like exhaustive pattern matching!
  • Soft - Return types are compiled away at runtime. A lightweight structure, ideal for small projects.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].