Popularity
6.2
Declining
Activity
0.0
Stable
27
4
4
Programming language: Crystal
License: MIT License
Tags:
Examples And Funny Stuff
Latest version: v0.3.0
try.cr alternatives and similar shards
Based on the "Examples and funny stuff" category.
Alternatively, view try.cr alternatives based on common mentions on social networks and blogs.
-
crystal-patterns
:book: Examples of GOF patterns written in Crystal -
crystal-benchmarks-game
Crystal implementations for The Computer Language Benchmarks Game -
kemal-chat
Sample application to demonstrate how easy it is to build realtime applications with Kemal using WebSocket. -
kemal-react-chat
This demonstrates how easy it is to build Realtime Web applications with Kemal. -
kemal-ws-react-pg-todo-app
Realtime Todo application developed with Kemal, React, ES2015 and PostgreSQL -
kemal-vue-chat
this is experimental repo for Kemal and Vue.js (+ WebSocket) -
Crystal-Maze
A* Path finding for PNG mazes, from Ruby now in Crystal. Using StumpyPNG -
kemal-react-pg-chat
Chat application developed with Kemal, React, ES2015 and PostgreSQL -
kemal_elm_chat
Simple chat server written in Crystal (Kemal) w/ an Elm front end. -
kemal-ws-todo-app
Realtime Todo application developed with Kemal and Websockets -
kemal-pg-sample
Sample app to demonstrate kemal + postgresql usage -
kemal-ws-pg-todo-app
Realtime Todo application developed with Kemal, Websockets, ES2015 and PostgreSQL -
chuck-norris-holy-quotes
An Chuck Norris Holy Quotes written in Crystal -
kemal-heroku-example
Kemal is super simple web framework powered Crystal lang. These repo show's how to use with heroku.
Build time-series-based applications quickly and at scale.
InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.
Promo
www.influxdata.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of try.cr or a related project?
README
try.cr 
Try monad for Crystal.
- crystal: 0.27.2 0.31.1 0.32.1 0.33.0 0.34.0
Usage
require "try"
i = Try(Int32).try { 1 } # => Success(Int32)
i.get # => 1
i.err # raises "not failed"
i.value # => 1
i.map(&.+ 1).value # => 2
i = Try(Int32).try { raise "error" } # => Failure(Int32)
i.get # raises "error"
i.err # => Exception("error")
i.value # => Exception("error")
i.map(&.+ 1).value # => Exception("error")
API
def success? : Bool
def failure? : Bool
def value : T
def get : T
def get? : T?
def err : Exception
def err? : Exception?
def failed : Try(Exception)
def foreach(&block : T -> U) : Nil
def map(&block : T -> U) : Try(U)
def flat_map(&block : T -> Try(U)) : Try(U)
def recover(&block : Exception -> T) : Try(T)
Installation
Add this to your application's shard.yml
:
dependencies:
try:
github: maiha/try.cr
version: 0.3.0
Development
make ci
Contributing
- Fork it ( https://github.com/maiha/try.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- maiha maiha - creator, maintainer