wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

Avoid using [] which implicitly inserts.

Open Javyre opened this issue 3 years ago • 0 comments

[] should be avoided where possible as it causes things that look like simple lookups to actually perform insertions.

[] replaced with explicit operators where possible.

[] = ... assignments aren't too confusing but try_emplace() is much clearer.

C++ magic looks very pretty but can be very dangerous.

Javyre avatar Jan 14 '22 23:01 Javyre