qt4cg / qtspecs

QT4 specifications
https://qt4cg.org/
Other
29 stars 15 forks source link

$err:stack-trace: string, please #1598

Open ChristianGruen opened 1 day ago

ChristianGruen commented 1 day ago

One unfortunate thing about $err:stack-trace is that it is difficult to serialize, for example as json: serialize($err:map, { 'method': 'json' }) does not work anymore.

I think we should not focus on optimization concerns, but rather return a plain string. If an implementation wants to optimize it further, it shouldn’t be that hard to internally represent it as a lazy string that is generated only when requested.

michaelhkay commented 8 hours ago

Another avenue might be that serialization shouldn't fail when processing a function, but should fallback, See #641.