This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

fuelen
I’m working on a small library (GitHub - fuelen/mold: A tiny, zero-dependency parsing library for external payloads · GitHub) where schem...
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
mudasobwa
If the code during compile phase conditionally relies on some config, the typing validation would yell at us while compiling. Consider th...
New
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

Last Three Year's Trending Top

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
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
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
chazwatkins
With Elixir 1.18 nearing release and coming with improvements to the new Set Theoretic Type System, I’m curious how Ash will integrate th...
New
zrzka
We’re migrating one of our projects to Elixir 1.18.4 (from 1.16.2). Facing a lot of issues because of --warnings-as-errors, but most of t...
New

Trending Over Three Years Top

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
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
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
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
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 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 am moving towards defined data structures in my application, and I find that TypedStruct is quite useful. Questions However...
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
Fl4m3Ph03n1x
Background For the longest time I have been estranged to the magic lands of comprehensions in FP languages. Now I am trying to pick it u...
New
jonericcook
Hello, Is there a way to combine types? It would be awesome to be able to do |> for Map.merge defmodule JEC.Types do @type network...
New
nathanl
Is it possible to build a union type from a list? For example, something like: defmodule HatEnum do @variants [:bowler, :sombrero] ...
New
vans163
I am wondering if this is correct, this should be a map of arbitrary size (could be 0, could be 1000) of integer keys. @type quests() ::...
New
vinibrl
I’m looking for a typespec that would match, for instance: %Foo{specific_key: "abc"} %Bar{specific_key: "abc"} %Baz{specific_key: "abc"}...
New
Mukulch15
I was going through the phoenix channel code and found the following typespec @type reply :: status :: atom | {status :: atom, response...
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