chore: update changelog

expecting a type on List<Data> from data now only checks that type is a list and not each element
This commit is contained in:
microproofs 2023-08-10 23:01:46 -04:00
parent eda388fb29
commit 2f7784f31e
2 changed files with 63 additions and 57 deletions

View File

@ -11,8 +11,10 @@
tree abstraction. tree abstraction.
- **aiken-lang**: Zero argument anonymous functions now are implemted as a - **aiken-lang**: Zero argument anonymous functions now are implemted as a
delayed function body and calling them simply does force delayed function body and calling them simply does force
- **aiken-lang**: Matching on int in expect and when cases is now implemented. - **aiken-lang**: Matching on int in expect and when cases is now implemented
- **aiken-lang**: Using assign in nested pattern matches is now implemented. - **aiken-lang**: Using assign in nested pattern matches is now implemented
- **aiken-lang**: Using List<Data> as a validator params only checks the type is
a list and does not attempt to check each item
### Optimization ### Optimization

View File

@ -1212,6 +1212,9 @@ impl<'a> CodeGenerator<'a> {
let inner_list_type = &tipo.get_inner_types()[0]; let inner_list_type = &tipo.get_inner_types()[0];
if inner_list_type.is_data() {
value
} else {
let list_name = format!("__list_span_{}_{}", location.start, location.end); let list_name = format!("__list_span_{}_{}", location.start, location.end);
let item_name = format!("__item_span_{}_{}", location.start, location.end); let item_name = format!("__item_span_{}_{}", location.start, location.end);
@ -1271,6 +1274,7 @@ impl<'a> CodeGenerator<'a> {
); );
assign.hoist_over(func_call) assign.hoist_over(func_call)
}
} else if tipo.is_2_tuple() { } else if tipo.is_2_tuple() {
let tuple_inner_types = tipo.get_inner_types(); let tuple_inner_types = tipo.get_inner_types();