Hacker News new | ask | show | jobs
by indemnity 3224 days ago
Nice! Have you done any performance comparisons to C++ kiwi?

Question: Any reason you manually added backing fields for properties instead of using private(set) var name: Type, for example? Since the latter has the effect of making it a let property outside of the class (cannot mutate an array exposed like this from the outside, for example).

1 comments

I haven't done any performance comparisons yet, unfortunately. I'm still working on improving the codebase to make it more Swifty. The backing fields are a leftover from the original Java implementation, and I didn't want to change too much initially, but now I have a bunch of tests and am using it in another project (a PDF generation library), I will start to make these changes :)