Jonathan Manning
04/16/2025, 11:15 AMext.args? What's a good pattern for handling the situation where EITHER params A+B OR params C+D are mandatory? Are they still all optional things to go in via ext.args? Or do we require them all such that folks are forced to supply empty values in all use cases?Maxime Garcia
04/16/2025, 11:18 AMMahesh Binzer-Panchal
04/16/2025, 11:19 AMJonathan Manning
04/16/2025, 11:20 AMSimon Pearce
04/16/2025, 12:22 PMJonathan Manning
04/16/2025, 12:25 PMMahesh Binzer-Panchal
04/16/2025, 12:27 PMBen Sherman
04/21/2025, 3:00 PMenum AB_or_CD {
AB(A a, B b),
CD(C c, D d)
}
Then you would supply a single input of type `AB_or_CD`:
input:
ab_or_cd: AB_or_CD
script:
if( ab_or_cd instanceof AB(a, b) )
// use a and b...
else if( ab_or_cd instanceof CD(c, d) )
// use c and d...
I intend to support all of this as part of static typesJonathan Manning
04/22/2025, 8:31 AM