Closed lun-4 closed 2 years ago
Hi, thanks for working on this.
I'm not sure I understand this:
but removing from() and putting it in the type initializer would be a nicer solution
Basically, moving from()
's body and putting it directly below ParsedQuery
's declaration. With that, you remove the need for ParsedQueryFromString
.
Ok, well sounds like this approach would be better so I would be interested.
Thanks !
Closes #77 with a hacky solution: By making
ParsedQuery
generic on the length of the query, and then with a newParsedQueryFromString
helper, to prevent repetition fromParsedQuery(query.len).from(query)
. Was not ready to change business logic all that much, but removingfrom()
and putting it in the type initializer would be a nicer solution, it can be done if that approach is welcome.