Re:Scala Best Practices
by vkjv on Friday October 31, 2014 @03:09PM
(#8540526)
"And if a public API is not thread-safe for some reason (like the usual compromises made in software development), then state this fact in BOLD CAPITAL LETTERS."
I prefer to use the `Unsafe` prefix for this, to make it abundantly clear without looking at the call. E.g., `updateUnsafe`.
I also use the `Unsafe` suffix when defining an HTML template rendering method that does not do escaping.
I prefer to use the `Unsafe` prefix for this, to make it abundantly clear without looking at the call. E.g., `updateUnsafe`.
I also use the `Unsafe` suffix when defining an HTML template rendering method that does not do escaping.