You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found it a bit confusing to have access to 'is_string()', 'is_int()' etc. in rust but not in rhaiscript... seems a bit cumbersome to have to type a.type_of() = "()" as opposed to just something like a.is_unit() in a script.
I considered this in the beginning but decided against it for the reason that it would introduce a new method of achieving something that can be done in another way.and the is_xxx API would need to be specific to known types.
I'm willing to put them in if enough people lobby for it though... As you know, it only involves defining those simple functions.
I found it a bit confusing to have access to 'is_string()', 'is_int()' etc. in rust but not in rhaiscript... seems a bit cumbersome to have to type
a.type_of() = "()"
as opposed to just something likea.is_unit()
in a script.I tossed this in my rhai instance:
The text was updated successfully, but these errors were encountered: