Anahkiasen / underscore-php

A redacted PHP port of Underscore.js with additional functions and goodies – Available for Composer and Laravel
http://anahkiasen.github.com/underscore-php/
1.12k stars 88 forks source link

Get with Magic #37

Closed yankeeinlondon closed 10 years ago

yankeeinlondon commented 10 years ago

After making the change I just noticed that there had been a historic (from Feb) attempt to address this. :)

In any event, hope you can approve this. Magic may have performance costs but who doesn't love magic? To me the one tradeoff is the fact that a property can legitimately have a "null" value but this would be addressed by the default being set to "null" and in fact the object and array are more consistent in behaviour now.