Latest #protocols Threads Top

denvaar
I noticed that _build/dev/consolidated gets populated with beam files after executing mix compile, as part of protocol consolidation. On...
New
sezaru
Hey guys, I have some files that implement a protocol for some resources for my tests (they are only compiled when running tests: defimp...
New
sodapopcan
I have a protocol that is used on Ecto Schemas. The protocol requires that two fields are defined with specific defaults. I have come u...
New
heilong
Is there a guard for testing protocol implementation? is_proto/2 For example, how to guard test for implementing Enumerable? I underst...
New
denvaar
I’m not sure if this is the way things are intended to be, but I’ve noticed that the following modules (in a new mix project using erlang...
New
lud
If you paste the whole code from defimpl Inspect, for: Map do # ... end into an Elixir shell, you will get “undefined function color/3”...
New
denna
I am trying to provide a way to create something like inheritance. i want to be able to call a a function on a Module that inherits the ...
New
Anko
I’m trying to write a Table.Reader implementation for Snap.SearchResponse from the snap library (GitHub - breakroom/snap: An Elasticsearc...
New
tcoopman
I don’t think the following is possible, but going to ask for possible solutions. I have the implementation of a Protocol with 5+ functi...
New
hectorsq
Hello! I am writing an application that translates JSON messages to SOAP messages. Currently I am handling 16 JSON messages and 20 SOAP ...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

maltoe
Hello! Came here to announce ChromicPDF, a pet project PDF generator I’ve been working on for the past few months. Why another PDF gener...
New
belaustegui
I’ve recently started a new Phoenix project using Elixir 1.11, Phoenix 1.5 and Ecto 3.5. Everything runs smoothly but there is a recurre...
New
sezaru
Hey guys, I have some files that implement a protocol for some resources for my tests (they are only compiled when running tests: defimp...
New
denvaar
I noticed that _build/dev/consolidated gets populated with beam files after executing mix compile, as part of protocol consolidation. On...
New
sodapopcan
I have a protocol that is used on Ecto Schemas. The protocol requires that two fields are defined with specific defaults. I have come u...
New

Last Three Year's Trending Top

sriki
I got the error mentioned in the title while running the following code. The weird part is I did get the response I expected but with thi...
New
fireproofsocks
I stumbled across the desire to want to use get_in while accessing deeply nested parts of a custom struct while needing to provide a defa...
New
tcoopman
I don’t think the following is possible, but going to ask for possible solutions. I have the implementation of a Protocol with 5+ functi...
New
Anko
I’m trying to write a Table.Reader implementation for Snap.SearchResponse from the snap library (GitHub - breakroom/snap: An Elasticsearc...
New
denna
I am trying to provide a way to create something like inheritance. i want to be able to call a a function on a Module that inherits the ...
New
hectorsq
Hello! I am writing an application that translates JSON messages to SOAP messages. Currently I am handling 16 JSON messages and 20 SOAP ...
New
denvaar
I’m not sure if this is the way things are intended to be, but I’ve noticed that the following modules (in a new mix project using erlang...
New
heilong
Is there a guard for testing protocol implementation? is_proto/2 For example, how to guard test for implementing Enumerable? I underst...
New
lud
If you paste the whole code from defimpl Inspect, for: Map do # ... end into an Elixir shell, you will get “undefined function color/3”...
New

Trending Over Three Years Top

toraritte
Hi, (I also asked on Stackoverflow, I hope cross-posting is ok.) I expected it to be documented in Module, probably with references to ...
New
Maxximiliann
Given: market_data = [ %{ asset: "3QvxP6YFBKpWJSMAfYtL8Niv8KmmKsnpb9uQwQpg8QN2", last_price: 0.1249534, priced_in: "WAVES...
New
blackode
In General if the Enum.all? evaluates true that means all the elements in the given collection evaluates true for the given callback func...
New
Qqwy
I am having some trouble understanding the difference between Behaviours and Protocols. This mostly is caused because the built-in Access...
New
valyukov
I use protocols in my project. When I run mix dialyzer, it returns list of not implemented protocols in Unknown functions: section. e.g....
New
jakub-zawislak
I'm trying to write two independent libraries with the same API. I thought I would achieve it with Protocols. I have already reviewed imp...
New
emilsoman
I recently learned that it's possible to delegate common implementations of protocols using defdelegate in the implementations, but I'm c...
New
lud
Hello, When using protocols, most complex code used in defimpl MyProtocol, for: MyStruct needs to use multiple helper functions from the...
New
Qqwy
As you know, Elixir protocols dispatch to the particular implementation based on the first argument passed to their functions. For many ...
New
KallDrexx
In my current project (first elixir project) I have different messages each represented by its own struct which defines the unique view o...
New
mattbaker
I’m having so much fun working on the “Protohackers” challenges, I never got into Advent of Code much but this has been amazing. The chal...
New
katafrakt
Hi, I’m contemplating writing an admin library, similar to Kaffy and LiveAdmin, but filling a few gaps found while using Kaffy. For that ...
New
mjadczak
Hi, I'm currently working on a final project/thesis for my CompSci course at the University of Cambridge. I have used Elixir for about ...
New
augnustin
Hello, I want to have a protocol with 3 methods with 2 optional having the following logic: defprotocol MyRepo.Render do @fallback_to...
New
Mrewan79
Apologies if this question has already been asked. As I understand it, the way to translate a concept similar to use of abstract classe...
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