s.length > 0 or s !is null? used to C++/C#'s world I cautch myself doing something like this:
if(s !is null && s.length > 0 && s == '/)
then a I remembered the D's way, which length is probably a function not a property (in the C++/C#'s sense, which needs this as first parameter, hence s.length with s being null would result in error).
But it seems it's just enough:
string s = null; if(s !is null && s == '/')
is this correct?