Design by contract - Preconditions and Postconditions - I'm really amazed with Scala.

This page summarizes the projects mentioned and recommended in the original post on /r/scala

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

    Strong type constraints for Scala (by Iltotore)

    Scala likes to do design-by-contract on the type level. You encode your pre- and post- conditions into types. Libraries like iron (scala 3) https://github.com/Iltotore/iron and refined (scala 2) https://github.com/fthomas/refined allow you to do all that without throwing any exceptions and they can even enforce some simple predicates at compile time.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • refined

    Refinement types for Scala

    Scala likes to do design-by-contract on the type level. You encode your pre- and post- conditions into types. Libraries like iron (scala 3) https://github.com/Iltotore/iron and refined (scala 2) https://github.com/fthomas/refined allow you to do all that without throwing any exceptions and they can even enforce some simple predicates at compile time.

  • stainless

    Verification framework and tool for higher-order Scala programs (by epfl-lara)

    You may find Dtainless interesting.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Make Invalid States Unrepresentable

    2 projects | dev.to | 2 Feb 2024
  • Restrict uses of annotation in Scala

    2 projects | /r/scala | 20 Feb 2023
  • Opinions on implementing traits for validation with the help of a companion object

    2 projects | /r/scala | 26 Feb 2022
  • Does the fthomas/refined library work differently in Scala 3?

    3 projects | /r/scala | 20 Jun 2023
  • Type erased on implicit evidence check

    1 project | /r/scala | 28 Apr 2023

Did you konow that Scala is
the 38th most popular programming language
based on number of metions?