Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gleam patterns documented #417

Open
lpil opened this issue Mar 15, 2024 · 0 comments
Open

Gleam patterns documented #417

lpil opened this issue Mar 15, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@lpil
Copy link
Member

lpil commented Mar 15, 2024

If you have experience with OOP or some other non-functional paradigm then it may be unclear how to write your code. Documenting common design patterns would be helpful!

An existing one for Haskell: https://kowainik.github.io/posts/haskell-mini-patterns

What should we cover?

  • Tail calls with an accumulator
  • Making invalid states unrepresentable
  • Result error wrapping
  • The builder pattern
  • Opaque types and smart constructors
  • Phantom types
  • ???
@lpil lpil added the help wanted Extra attention is needed label Mar 15, 2024
@lpil lpil transferred this issue from gleam-lang/gleam Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant