We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
The use of conditionals in Elixir and functional programming
77
clicks
Source: reddit.com
In their learning journey of Elixir and functional programming, Electronic_Pepper382, who follows the 'Elixir for Programmers' course, notices an avoidance of using traditional if/else conditional statements. Instead, the course instructor demonstrates using pattern matching to handle cases, which seems counterintuitive to the author. For example, a code segment returns specific states without using conditionals but rather multiple function definitions. The author speculates whether this approach showcases pattern matching or has deeper reasoning in functional programming.
Related posts
© HashMerge 2024