mldbai / mldb

MLDB is the Machine Learning Database
http://mldb.ai
Apache License 2.0
666 stars 102 forks source link

Square bracket behaviour RFC #834

Closed FinchPowers closed 7 years ago

jeremybarnes commented 7 years ago

I completely support this change; it was only in deference to Nic's position that we kept it in the past. The semantics now match those of Python, Javascript and C++. We should be aware however that it will break many existing tests and some existing code.

We should also (later) make the . operator a first class expression so that instead of func(x)['result'] as now, we can do func(x).result; that will make the syntax more consistent and easier to work with.