balt-dev / robot-is-chill

Modified version of RocketRace/robot-is-you
GNU General Public License v3.0
22 stars 17 forks source link

Add some new macros and update existing ones #138

Closed Mathman2028 closed 5 months ago

Mathman2028 commented 5 months ago

This pull request adds a macro for logarithms, along with JSON support. It also adds an optional seed argument for rand, and makes the error message actually show up for error.

Mathman2028 commented 5 months ago

you should probably implement proper error handling for malformed JSON

what do you mean by that? catch the json error and then just throw another?

Mathman2028 commented 5 months ago

JSONDecodeError is raised by default when the JSON decoder sees malformed JSON, and I don't see why that can't just be caught like normal.

Mathman2028 commented 5 months ago

can you be more specific on how you want the error handling changed?

balt-dev commented 5 months ago

ah, i see fair enough