June 7, 2018
9:46 p.m.
Am 07.06.2018 um 21:18 schrieb Esteban A. Maringolo <emaringolo@gmail.com>:
On 07/06/2018 13:59, Sven Van Caekenberghe wrote:
On 7 Jun 2018, at 14:42, Norbert Hartl <norbert@hartl.name> wrote: And safer. The current implementation of NeoJSONObject is not ver good. It returns nil on any missing key so you mask a lot of errors in your code which I find dangerous.
Haha, it was modelled after a JavaScript object, of course it is worse, but more convenient in scripting code. Sure, a plain Dictionary is better.
Nothing that syntax sugar mapping some convenient property accessor to #at: couldn't fix. :)
If you come this point you should realize that you need to have a domain object instead