a2aaron / bytebot

Posts randomly generated bytebeats with video output to twitter every few hours.
https://twitter.com/bytebeat_bot
3 stars 0 forks source link

Check well formedness ahead of time. #54

Closed a2aaron closed 6 years ago

a2aaron commented 6 years ago

This PR adds Code, which is a wrapper struct meant to make it not possible to create an invalid Vec<Cmd>. This simplifies the code for evaluating a bytebeat since we no longer need to check the stack's status every time we pop it.

porglezomp commented 6 years ago

Looks better to me.