You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The specifications of built-in functions String.sub, String.extract, String.concat, String.concatWith, List.hd, List.tl, List.last, List.nth, List.take, List.tabulate require them to throw exceptions Empty, Subscript, Size. (See, for example, the String structure in Standard ML basis library.)
Change the implementations of those functions to raise exceptions. The exception is printed on the console, for example
String.sub("abc", ~1);
uncaught exception Subscript [subscript out of bounds]
This change does not allow the user to define, raise or handle exceptions (keywords exception, raise, handle).
The text was updated successfully, but these errors were encountered:
The specifications of built-in functions
String.sub
,String.extract
,String.concat
,String.concatWith
,List.hd
,List.tl
,List.last
,List.nth
,List.take
,List.tabulate
require them to throw exceptionsEmpty
,Subscript
,Size
. (See, for example, the String structure in Standard ML basis library.)Change the implementations of those functions to raise exceptions. The exception is printed on the console, for example
This change does not allow the user to define, raise or handle exceptions (keywords
exception
,raise
,handle
).The text was updated successfully, but these errors were encountered: