The Crystal Programming Language Forum

Split out generic method type args

Repo.all(User, query)
||
V
Repo.all<User>.all(query)

What would the benefit of this be over what the first example is doing?

What is wrong with Repo(User).all(query) ?
Just implement that generic if needed.

2 Likes