sums_up

Sum types for Ruby (by nahiluhmot)

Sums_up Alternatives

Similar projects and alternatives to sums_up based on common topics and language

  • fantasy-land

    21 sums_up VS fantasy-land

    Specification for interoperability of common algebraic structures in JavaScript

  • daggy

    1 sums_up VS daggy

    Library for creating tagged constructors. (by fantasyland)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • hkts

    3 sums_up VS hkts

    Discontinued Functional programming tools: option, either, task, state, optics, etc. (by nullpub)

  • sum-types

    Discontinued An attempt to emulate sum types using Go generics. (by rodrigocfd)

  • lofty-rs

    Audio metadata library

  • mp4ff

    Library and tools for parsing and writing MP4 files including video, audio and subtitles. The focus is on fragmented files. Includes mp4ff-info, mp4ff-encrypt, mp4ff-decrypt and other tools.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better sums_up alternative or higher similarity.

sums_up reviews and mentions

Posts with mentions or reviews of sums_up. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-23.
  • Ruby in FantasyLand: SumsUp
    3 projects | dev.to | 23 May 2022
    Now with Ruby we have a few different ideas we want to express. Whereas Daggy has tagged and taggedSum we have Struct and SumsUp.define instead. You can find more info on SumsUp here, but we'll be covering the general details in this post.
  • sums_up v1.0.0 - Sum Types for Ruby.
    1 project | /r/ruby | 9 Apr 2022
    Hello, r/ruby! I wrote a gem, sums_up, for defining and pattern matching against sum types at Ruby. This isn't the first attempt at porting sum types into the language, but the other implementations that I've used either didn't "feel like" traditional Ruby, or didn't "feel like" a native sum type implementation. I tried my best to bridge that gap. Code Sample: ‏‏‎ require 'sums_up' # Define a sum type for Users; they can either be anonymous or logged in. User = SumsUp.define(:anonymous, logged_in: :email) # => User anon = User.anonymous # => # logged_in = User.logged_in('[email protected]') # => # anon.anonymous? # => true anon.logged_in? # => false logged_in.anonymous? # => false logged_in.logged_in? # => true anon.email # => NoMethodError: undefined method `email' for # logged_in.email # => "[email protected]" def valid_email?(user) user.match do |m| m.anonymous false m.logged_in { |email| URI::MailTo::EMAIL_REGEXP.match?(email) } end end valid_email?(anon) # => false valid_email?(logged_in) # => true valid_email?(User.logged_in('1337h@ck3r')) # => false There are a few more thorough examples in the README. If you're interested, try it out and let me know what you think!
  • Sum types for Ruby
    1 project | /r/ruby | 30 Jun 2021
  • Show HN: Sum Types for Ruby
    1 project | news.ycombinator.com | 29 Jun 2021
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 6 May 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic sums_up repo stats
4
40
0.0
over 1 year ago

nahiluhmot/sums_up is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of sums_up is Ruby.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com