Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: sky/specs/design.md

Issue 694843003: Specs: default arguments (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/specs/apis.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/design.md
diff --git a/sky/specs/design.md b/sky/specs/design.md
index a57eeeddf44f9bb94f5a5fd19a68ba82f0ca89a5..6dfe7456f6bc05df764fcf0b0511af30e7369a25 100644
--- a/sky/specs/design.md
+++ b/sky/specs/design.md
@@ -30,3 +30,6 @@ Design Principles
* APIs should always spell acronyms like words (findId, not findID;
XmlHttpRequest, not XMLHttpRequest)
+
+* If we extend a method to have new arguments, they must be optional
+ if there's any content using the existing method.
« no previous file with comments | « sky/specs/apis.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698