carp-lang / Carp

A statically typed lisp, without a GC, for real-time applications.
Apache License 2.0
5.47k stars 173 forks source link

refactor: make fread more general #1421

Open scolsen opened 2 years ago

scolsen commented 2 years ago

fread can technically accept any object -- it takes a void pointer. Our current implementation assumes the object is a String, which limits the applicability of this function. This change alters the definition to accept any type.

scolsen commented 2 years ago

If anyone has good ideas around how to do this in a way that won't break existing callers, please share!