truss

Assertions micro-library for Clojure/Script (by taoensso)

Truss Alternatives

Similar projects and alternatives to truss

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

truss reviews and mentions

Posts with mentions or reviews of truss. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-25.
  • Java 21: What’s New?
    1 project | news.ycombinator.com | 9 Aug 2023
    When type checking is needed, I find the Truss library* does the trick quite well.

    As for the syntax, there is very little, which can make it a harder lift but once you have the hang of it you won't deal with the issues identified in the parent comment.

    * https://github.com/taoensso/truss

  • Tired by the dynamicism
    7 projects | /r/Clojure | 25 Jan 2023
    I use truss extensively throughout my code to prevent those types of errors.
  • Python dataclass equivalent
    7 projects | /r/Clojure | 20 Jan 2022
    I haven't tried it myself. I generally just use truss for runtime constraint checking. I use a modified version that integrates scope-capture. And malli validation for more complex cases, but I try to limit that. For me it is better to validate individual attributes as needed, vs validating an entire "type"/collection of attributes. So each function only cares about the attributes that it needs, and validates only as needed.
  • Love Clojure, challenged by discoverability
    6 projects | /r/Clojure | 22 Dec 2021
    Use assertions for all data requirements inside functions - I use a modified version of https://github.com/ptaoussanis/truss to ensure that I never get NullReference exceptions, and this also helps make functions more self-documenting. Also use this to assert return data.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 28 Apr 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic truss repo stats
4
296
5.9
17 days ago

taoensso/truss is an open source project licensed under Eclipse Public License 1.0 which is an OSI approved license.

The primary programming language of truss is Clojure.


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