Skip to content

refactor: squeue argument forwarding with an Enum - #72

Closed
nikosavola wants to merge 1 commit into
karimknaebel:mainfrom
nikosavola:nikosavola/push-xmtypysksppr
Closed

refactor: squeue argument forwarding with an Enum#72
nikosavola wants to merge 1 commit into
karimknaebel:mainfrom
nikosavola:nikosavola/push-xmtypysksppr

Conversation

@nikosavola

Copy link
Copy Markdown
Contributor

A bit of DRYing.

Replace the 20 near-identical if-blocks in SqueueArgs::to_vec with a single ordered table of Flag::Value/Flag::Bool entries and one loop.

Replace the 20 near-identical if-blocks in SqueueArgs::to_vec with a single ordered table of Flag::Value/Flag::Bool entries and one loop.
@karimknaebel

Copy link
Copy Markdown
Owner

i prefer the current version, repetitive but very explicit and immediately clear what's going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants