3 ms·
Really? I guess if you exclusively work on legacy codebases whicih already smell a certain way introducing stuff like this may cause some headache but if you h
by shaunxcode 17y ago
Really?
I guess if you exclusively work on legacy codebases whicih already smell a certain way introducing stuff like this may cause some headache but if you have the opportunity to design something from the ground-up why would you NOT go for elegance?
- gdp 17y agoI have no idea what about this you think would be 'elegant'. It's elegant in the same way that using computed offsets into raw memory is elegant in C, which is to say that it's inherently fragile, prone to very subtle bugs, and detrimental to readability. And given that it's in PHP, it doesn't even really have the absurd machismo of doing dubious things with pointer arithmetic in C going for it.