digitalmars.D.learn - How to simplify nested ifs
- Ozan =?UTF-8?B?U8O8ZWw=?= (13/13) Mar 13 2018 Hi
Hi
I have a construction like the following
if (source) {
if (source.pool) {
if (source.pool.repository) {
if (source.pool.repository.directory) {
if (source.pool.repository.directory.users) {
return source.pool.repository.directory.users[ownerID];
}
}
}
}
}
Mar 13 2018








Ozan =?UTF-8?B?U8O8ZWw=?= <ozan.sueel gmail.com>