ASH scripts now support 'var' for local variable type inference, where the compiler will infer the type of a newly initialised variable. This should make dealing with records easier, as you can now do:
Code:
var kit=black_and_white_apron_kit_contents();
print(`Main: {kit.main_ingredient} -> {kit.main_effect.name}`);
for(int i=0;i<3;i++){
var meal=kit.meals[i];
for(int j=0;j<5;j++){
var ing=meal[j];
print(`Ingr[{i},{j}]: {ing.ingredient.name} -> {ing.effect.name}, {ing.effect_turns} turns, {ing.meat} meat`);
}
}