mauroalderete / gcode-core

Golang library to model and edit G-code commands, blocks from files
MIT License
7 stars 1 forks source link

pointer method can get a nil receiver, how we must handle this? #29

Closed mauroalderete closed 2 years ago

mauroalderete commented 2 years ago

Be could return error instances. But, the fact that all methods return a potential error makes using packages unmanageable.

We have to search references to look at how others handled this.

mauroalderete commented 2 years ago

According to [How to handle method with Nil Receiver?](https://stackoverflow.com/questions/60878082/how-to-handle-method-with-nil-receiver) we don't handle this.

Simply we wait for a panic event to happen.