Latest #types Threads Top

lud
Hello, I do TDD a lot and so my code, notably my test code, is very often incorrect compared to the current implementation (since the pu...
New
brainlid
Episode 308 of Thinking Elixir. Elixir v1.20 has officially landed, marking a huge milestone as the language is now officially a graduall...
New
fuelen
I’m working on a small library (GitHub - fuelen/mold: A tiny, zero-dependency parsing library for external payloads · GitHub) where schem...
New
andreashasse
Hi all, I’ve been working on PhoenixSpectral, a library that makes Phoenix controller @spec annotations drive both OpenAPI generation an...
New
mudasobwa
I know I put the cart before the horse, but AI providers started this race, not me. Welcome Typle, the library that leverages a modern E...
New
andreashasse
I’m happy to announce Spectral, a library that lets your Elixir structs and @type specs become the single source of truth for validation,...
New
chocolatedonut
Will, or should, Elixir 1.20 types warn when a struct is in a list and a struct’s key is mistyped? Only the uncommented Enum.reject line ...
New
brainlid
Episode 295 of Thinking Elixir. News includes José Valim publishing a deep technical post on Elixir’s type system shift from DNFs to Lazy...
New
brainlid
Episode 282 of Thinking Elixir. News includes cutting-edge research from José Valim and Guillaume Duboc on the data structures powering E...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New

This Week's Trending Top

This Month's Trending Top

brainlid
Episode 308 of Thinking Elixir. Elixir v1.20 has officially landed, marking a huge milestone as the language is now officially a graduall...
New

This Year's Trending Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
smueller
With the announcement of 1.19 rc0 and the path to user-supplied type annotations, I want to make the case for inline types—both for funct...
New
fuelen
I’m working on a small library (GitHub - fuelen/mold: A tiny, zero-dependency parsing library for external payloads · GitHub) where schem...
New
andreashasse
I’m happy to announce Spectral, a library that lets your Elixir structs and @type specs become the single source of truth for validation,...
New
mudasobwa
I know I put the cart before the horse, but AI providers started this race, not me. Welcome Typle, the library that leverages a modern E...
New
mudasobwa
If the code during compile phase conditionally relies on some config, the typing validation would yell at us while compiling. Consider th...
New
markusgod
I’ve stumped upon this EEP eep/eeps/eep-0069.md at master · erlang/eep,will it help to support type introspection around Gleam’s types, E...
New
chocolatedonut
Will, or should, Elixir 1.20 types warn when a struct is in a list and a struct’s key is mistyped? Only the uncommented Enum.reject line ...
New

Last Three Year's Trending Top

Qqwy
TypeCheck: Fast and flexible runtime type-checking for your Elixir projects. Core ideas Type- and function specifications are const...
336 14482 100
New
D4no0
The talk that we were all waiting for on the future of elixir type system is out: The talk is amazing, it covers all the c...
New
sodapopcan
After re-watching José’s keynote from last year, he brought up that he believes that reducing the number of tests you need to write is no...
New
jakespracher
I am working on a few new elixir projects and am finding I want to encode more type information than vanilla elixir syntax allows as I un...
New
viniciusalonso
Hi everyone! I’m working in a gist with some concepts around elixir new type system. This is a WIP and I’ll add more content on the next...
New
bartblast
Why comparing atoms gives typing violation warning? consider: defmodule MyModule do def test do :a < :b end end mix compile...
New
pepicrft
Hi :wave:, I upgraded to Elixir 1.18.0, and started getting type-checking warnings in the following module: defmodule TestModule do @...
New
wrren
I wrote this library several years ago, but I’ve recently had a use case for it that’s caused me to make several updates that I think wou...
New
xlive
Hey there! We are using Ecto to parse some API response (it works pretty well!). We want this response to be converted to a struct, so ...
New
andreyvolokitin
If we want to introduce common reusable type, should we introduce separate Types module like so?: defmodule App.Shared.Types do @modul...
New
blubparadox
Forgive me, this could be answered somewhere but “t” and “t()” are difficult to get to work in search. When writing types for your code,...
New
fireproofsocks
When adding a @spec to a function, is there any functional difference between doing something like @spec my_func(input :: binary()) :: a...
New
przemyxe0p
Hello I am trying to understand types definitions in documentation https://hexdocs.pm/elixir/typespecs.html#built-in-types Especially i...
New
SirWerto
Hello Elixirs :wave: I am not being able to get rid of this Dialyzer error lib/collector/feed.ex:78:unknown_type Unknown type: :mnesi...
New
heilong
Where is the best place to follow developments for the Set Theoretic Type System? There does not seem to be an existing category or sing...
New

Trending Over Three Years Top

jononomo
At my last company we migrated a large codebase from JavaScript to TypeScript – basically it just amounted to adding a couple of lines to...
New
peoj
Let’s say I have a behaviour MyBehaviour and a function that may return any module implementing that behaviour. Is it possible to write ...
New
IvanR
Domo makes your structure types work for data conformance validation. And it enables automatic range checking for field types at run-time...
New
Nezteb
poll The poll allows up to 2 votes for cases where people have a preferred tool for Elixir and a separate preferred tool for Erlang or th...
New
dantyler
Dear Elixir hobbyists and professionals, I understand that t() is used for types. For example I can defstruct id: 0 in MyModule and spec...
New
Fl4m3Ph03n1x
Background Recently I have discovered this notion of “zero cost type wrappers”. Basically what this means is that you can create a new ty...
New
vrod
I am working with behaviours and callbacks, so I am trying to define a spec for a function that should accept an argument which is also a...
New
aochagavia
Two months ago I started working professionally on an Elixir project. I had no previous Elixir experience, but I am picking it up at a re...
New
Sanjibukai
Hi everybody, I’m following along the Programming Phoenix 1.4 book and at a moment we are implementing a custom Ecto type. According to...
New
Fl4m3Ph03n1x
Background So, I am playing around with a concept named “NewType” and I am taking inspiration from languages like F# and Scala. My objec...
New
sodapopcan
I was wondering if there is anyone here who either maintains or has any experiencing with a large Elixir/Erlang project in production tha...
New
timCF
Hello guys! I implemented another way to create new data types (which are not structs or records) in Elixir. Please check out readme file...
New
IvanR
There is one long term request - to have strict type checking in Elixir. As far as I remember, @rcm765 mentioned that in the talk at Lon...
New
Fl4m3Ph03n1x
Background I want to create a percentage type using floats, something like: @type percentage :: 0.0..1.0 Now, you will know that this i...
New
Fl4m3Ph03n1x
Background I have a custom struct and I want to define a type for it so I can run Dialyzer checks. However Dialyzer is complaining that I...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement