kaplay
kaplay copied to clipboard
bug: Most functions don't stringify arguements to prevent errors.
Currently when using Oak with Kaplay/Kaboom, I have this issue:
Most functions don't have a single check at the lowest level of the scope, allowing for incorrect arguments to pass without error handling/checking.
For Oak, the Oak-JS-Interop implements strings to be objects since in Oak they are also a buffer.
While using Kaboom, you would need to stringify all your OakStrings from the top-level down.
This sucks, it leaves me with tons of implicit string-ification handlers everywhere, which just calls the function which returns its only arg without any change.
Maybe handling if a string | unknown thing
has a modified zero-value string function? (<_baseIterator>.prototype.toString
)
Or just doing stringify in the lower level?