ListIterator
panics while iterating over an improper list
#338
Labels
ListIterator
panics while iterating over an improper list
#338
If
ListIterator
tries to iterate over an improper list, it panics while retrieving its elements.Is it possible for
ListIterator
to fail in a modest way like throwing errors, rather thanpanic!
-ing?Besides, because the functions in
rustler::types::list
are hidden, there are no documented ways to decouple improper lists (e.g.rustler::types::lists::list_get_cell
). It would be very helpful if they were documented.Here is the output:
(Code used to reproduce this
panic!
-ing: https://github.com/koba-e964/phx_rust_21/compare/bug/improper-lists)The text was updated successfully, but these errors were encountered: