feat: lazy-eval pass_cmd #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "kbity:feature/lazy-eval-pass-cmd"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #8 :)
adds
api.platforms.AccountPasswordtagged union representing two possible states:pass_cmd-- password has not yet been evaluatedpassword-- plaintext password, the command has been evaluatedand integrates them into the existing
api.platforms.AccountConfigstruct.evaluation takes place at
Wbij.startSessionForAccount.nb. i had to remove the
constqualifier for some*config.Config.Accountto allow the union to be mutated.0e2bcb3f40toc73f30d653Thank you! Good work!
Pass cmd should be evaluated at the front-end side, not api side.
apimodule is intended to be extracted out into a separate repository and be an universal library for interacting with competitive programming platforms. Therefore,platforms.AccountConfigshould be a "compiled" object that does not make any assumptions about the environment.I will create a follow-up PR with small refactor.
Pull request closed