kaplay icon indicating copy to clipboard operation
kaplay copied to clipboard

bug: Most functions don't stringify arguements to prevent errors.

Open SpcFORK opened this issue 9 months ago • 0 comments

Currently when using Oak with Kaplay/Kaboom, I have this issue:

image 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.

image

For Oak, the Oak-JS-Interop implements strings to be objects since in Oak they are also a buffer.


image

While using Kaboom, you would need to stringify all your OakStrings from the top-level down.

image image image

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?

SpcFORK avatar May 25 '24 20:05 SpcFORK