New variable types #3018
arthuro555
started this conversation in
Enhancement ideas (and their technical discussions)
Replies: 1 comment 3 replies
-
I think that buffering is a technical concept that should be abstracted from users by event functions. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think 2 new data types for variables would be great:
Set
A set just like the c++ standard library
std::set
or the JavaScriptSet
. An unordered set of values where a value can only be contained once. You could compare it to a structure with just the keys.Typed Arrays
JavaScript typed arrays are incredibly useful for everything performance related. It would be useful to load from the network or filesystem binary files and images. For example, this could allow to load an image from the internet via events or to use a binary-based serialization method like FlatBuffers to save games...
They are especially needed since basic javascript optimizations are thrown out the window through having event number arrays contain objects (gdjs.Variables instead of numbers) 💀
Beta Was this translation helpful? Give feedback.
All reactions