unsafe alternatives and similar packages
Based on the "Macros" category.
Alternatively, view unsafe alternatives based on common mentions on social networks and blogs.
-
typed_struct
An Elixir library for defining structs with a type without writing boilerplate code. -
shorter_maps
Elixir ~M sigil for map shorthand. `~M{id, name} ~> %{id: id, name: name}` -
ok_jose
Pipe elixir functions that match ok/error tuples or custom patterns. -
crudry
Elixir library for DRYing CRUD in Phoenix Contexts and Absinthe Resolvers. -
pipe_to
The enhanced elixir pipe operator which can specify the target position -
pattern_tap
Macro for tapping into a pattern match while using the pipe operator -
rulex
This tiny library (2 macros only) allows you to define very simple rule handler using Elixir pattern matching. -
guardsafe
Macros expanding into code that can be safely used in guard clauses. -
apix
Simple convention and DSL for transformation of elixir functions to an API for later documentation and or validation. -
backports
Ensure backwards compatibility even if newer functions are used -
Bang
Bang simply adds dynamic bang! functions to your existing module functions with after-callback.
WorkOS - The modern identity platform for B2B SaaS
Do you think we are missing an alternative of unsafe or a related project?
Popular Comparisons
README
Unsafe
This library is designed at generating unsafe (!) bindings for Elixir function definitions at compile time.
The aim is to reduce the amount of duplicated code that developers have to write when supporting both safe and unsafe variants of functions. It was written to scratch a personal itch but due to the clear utility for a wider audience, it was packaged up to make it extensible as an open source project.
To install it for your project, you can pull it directly from Hex. Rather than use the version shown below, you can use the the latest version from Hex (shown at the top of this README).
def deps do
[{:unsafe, "~> 1.0"}]
end
Documentation and examples can be found on Hexdocs as they're updated automatically alongside each release.