serras
Patternr - experiment with pattern matching
Hi! I’ve created a small application to help learners experiment with pattern matching, https://www.patternr.dev/. It currently supports (a subset of) Elixir and Haskell syntax. I’m happy to hearn any suggestions you may have ![]()
PS: It’s my first app built with LiveView, and the experience has been great!
Most Liked
axelson
This looks like a really neat project! I think it would be really helpful to have a couple links that will prefix an example pattern so users can easily see working examples of supported patterns.
Also it would be good if more complex patterns were accepted:
And a minor improvement would be to change “Incorrect Pattern” to “Invalid Pattern”. Incorrect doesn’t really match because you don’t know the users intention.
But overall great job!
eksperimental
Hi, here are some suggestions
-
case 1..2does not work -
case 1 when x when is_integer(x) ->does not work either (maybe guards are not supported yet) -
I would add an
endto the the template
case [ TERM ] do
[ PATTERN ] -> ...
end
Exadra37
Last Post!
serras
Popular in Discussions
Other popular topics
Chat & Discussions>Discussions
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #hex
- #security










