pimonteiro / CG

MIT License
0 stars 0 forks source link

Generator for basic primitives #12

Closed pimonteiro closed 5 years ago

pimonteiro commented 5 years ago

You are not checking for exceptions in your code.

Elaborate.

herulume commented 5 years ago

You are not checking for exceptions in your code.

Elaborate.

When converting from string to an int, or float/whatever the type, the functions you are using can throw an exception from what I have read.

pimonteiro commented 5 years ago

You are not checking for exceptions in your code.

Elaborate.

When converting from string to an int, or float/whatever the type, the functions you are using can throw an exception from what I have read.

I don't think that is necessary as this is a small project where we can really trust the user INPUT. But if you prefer, i can implement an error checking, with the cost of having "ugly" code on it.