You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library has used {} as empty structure. Recently, structures has been replaces with #queue{} explicit definition. We need a tools (approach) to match empty empty structures in the functions.
e.g.
do_somthing(?empty_queue()) -> ...
The text was updated successfully, but these errors were encountered:
__WHY__
The usage of data structure with tail recursion is easy if
pattern match is used
```
do(?queue()) ->
% empty
do(#queue{}) ->
% non empty
```
__WHAT__
Add macros for each data structure.
The library has used
{}
as empty structure. Recently, structures has been replaces with#queue{}
explicit definition. We need a tools (approach) to match empty empty structures in the functions.e.g.
The text was updated successfully, but these errors were encountered: