Released vibe.d 0.8.2

bauss jj_1337 at live.dk
Sun Dec 17 20:56:48 UTC 2017


On Sunday, 17 December 2017 at 20:55:15 UTC, bauss wrote:
> 		private Nullable!string _path;

Also does this really make sense?

Why not just have it:

private string _path;

Then instead of:
		string path() @safe {
			if (_path.isNull) {
				_path = urlDecode(requestPath.toString);
			}
			return _path.get;
		}

You could have:
		string path() @safe {
			if (!_path) {
				_path = urlDecode(requestPath.toString);
			}
			return _path;
		}


More information about the Digitalmars-d-announce mailing list