Merge: lib/ini: give to the user `null` on undefined keys
authorJean Privat <jean@pryen.org>
Sun, 30 Aug 2015 18:02:05 +0000 (14:02 -0400)
committerJean Privat <jean@pryen.org>
Sun, 30 Aug 2015 18:02:05 +0000 (14:02 -0400)
commit4a22512a03f65451889bdd1683f7d6b2ef2b5ab6
tree336bc276e2f1ea80795aceafb5bdb88368e5dc9a
parentee05e04a432d00b93a6b9139bc751e13c5b2a909
parentb8585229e71552052a4af8d9ad414c15f01a2651
Merge: lib/ini: give to the user `null` on undefined keys

Since the absence of a key is an ini file is an expected thing, I think it is better that the library return `null` instead of aborting.

This simplifies the library (and remove all aborts and cast on null).
This also simplify clients: a single call and use of advanced nullable features of Nit.

Pull-Request: #1672
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
src/loader.nit