Skip to content

Commit 3f366a9

Browse files
authored
Add notes on unexpected inputs and mixing array types to Scope section (#58)
1 parent b83067c commit 3f366a9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spec/purpose_and_scope.md

+14
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,13 @@ extensions are dealt with_):
183183
particular way of building regular functions with a few extra
184184
methods/properties._
185185

186+
7. Behaviour for unexpected/invalid input to functions and methods.
187+
188+
_Rationale: there are a huge amount of ways in which users can provide
189+
invalid or unspecified input to functionality in the standard. Exception
190+
types or other resulting behaviour cannot be completely covered and would
191+
be hard to make consistent between libraries._
192+
186193

187194
**Non-goals** for the API standard include:
188195

@@ -200,6 +207,13 @@ extensions are dealt with_):
200207
library switches from one array type to another, some testing and possibly
201208
code adjustment for performance or other reasons may be needed._
202209

210+
- Making it possible to mix multiple array libraries in function calls.
211+
212+
_Most array libraries do not know about other libraries, and the functions
213+
they implement may try to convert "foreign" input, or raise an exception.
214+
This behaviour is hard to specify; ensuring only a single array type is
215+
used is best left to the end user._
216+
203217

204218
### TBD whether or not in scope, or for a later version
205219

0 commit comments

Comments
 (0)