Add immutable tuples to Painless #91714
Labels
:Core/Infra/Scripting
Scripting abstractions, Painless, and Mustache
>feature
Team:Core/Infra
Meta label for core/infra team
Python has had tuples since it was created, Java has gone with records instead.
It would be good to add built-in immutable tuples to Painless - an object that is just defined as
(10, "foo", new ArrayList<>())
. Such objects would probably only be accessible asdef
, with built-in implementations for 1 to N-tuples under the hood.The javatuples library is probably a good starting point for implementation/methods.
The text was updated successfully, but these errors were encountered: