Closed thinkbeforecoding closed 5 years ago
Very cool - thanks so much! Looks good at first glance. I'll review a little deeper and merge ASAP. I think I can get this folded into https://github.com/SwensenSoftware/unquote/pull/146 for the planned 5.0 release (let's say, 1-6 weeks depending on where I can find the time).
@thinkbeforecoding alright, I got this merged into the fs46
branch with two further enhancements:
NewRecord
expressions reduced if all their args are reduced (this ensures we don't output extra, near duplicate expressions during reduction. i.e. we don't want NewRecord
-> Value
to be a 2-step reduction): https://github.com/SwensenSoftware/unquote/pull/146/files#diff-9886de549f3d1bfff12314cdf514dcc5R51Thanks again!
@thinkbeforecoding FYI - this is released as part of Unquote 5.0.0 today!
This PR improves the decompilation of Records constucts.
Previously it looked like 'NewRecord Record("hello",42)'
It is now ' { Text = "hello"; Value = 42}' which is way nicer 😸