duesee / imap-codec

Rock-solid and complete codec for IMAP
Apache License 2.0
35 stars 13 forks source link

refactor: Avoid struct-like enum variants? #368

Open duesee opened 9 months ago

duesee commented 9 months ago

This would give us the flexibility to re-group variants, e.g., enum CommandAny, by sacrifycing only a little of readability.

duesee commented 2 weeks ago

I... 'm not too keen to do this right now. It adds quite a bit of boilerplate for theoretical usage. In fact, it's only really useful for Authenticate (due to our experience in imap-next.)

Maybe we should refactor CommandBody::Authenticate only for now?