3 ms·
Actually his example has noise in both cases. Compare that to Lua's: return id > 0 and repository:get(id) Also in C you can #define maybe(cond, ptr) ((con
by wruza 10y ago
Actually his example has noise in both cases. Compare that to Lua's:
return id > 0 and repository:get(id)
Also in C you can #define maybe(cond, ptr) ((cond)?(ptr):NULL) macro and use it everywhere.