Skip to content

Use lexemes so that list can be empty#5

Merged
martinsumner merged 5 commits intoopenriak-3.2from
nhse-o32-orc.i4-emptylist
Dec 4, 2025
Merged

Use lexemes so that list can be empty#5
martinsumner merged 5 commits intoopenriak-3.2from
nhse-o32-orc.i4-emptylist

Conversation

@martinsumner
Copy link
Contributor

#4

As it is a string to be split, already must be a string
@martinsumner martinsumner marked this pull request as draft November 14, 2025 17:24
the `to_string/1` function appears to have use for converting a datatype back to a string.  However, it is also used to convert the default value as read to a string to add to the default section of the file.

Most to_string/1 clauses handle this by checking if the input is a list - and don't do anything with a list ... but a list will be a list, and a string!

Changed this so that it cannot be a list of integers - then we assume a list of all integers is in fact a string which doesn't need conversion, and not a list that needs conversion
@martinsumner martinsumner marked this pull request as ready for review November 14, 2025 20:05
@martinsumner martinsumner merged commit 0260e9e into openriak-3.2 Dec 4, 2025
2 checks passed
@martinsumner martinsumner deleted the nhse-o32-orc.i4-emptylist branch December 4, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants