How to leave implementation to later in OCaml
up vote
2
down vote
favorite
In Scala there is the ???
operator which lets the compiler continue without complaining about something not being implemented, if you are testing another part of the program.
Does OCaml have an equivalent operator?
ocaml
add a comment |
up vote
2
down vote
favorite
In Scala there is the ???
operator which lets the compiler continue without complaining about something not being implemented, if you are testing another part of the program.
Does OCaml have an equivalent operator?
ocaml
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
In Scala there is the ???
operator which lets the compiler continue without complaining about something not being implemented, if you are testing another part of the program.
Does OCaml have an equivalent operator?
ocaml
In Scala there is the ???
operator which lets the compiler continue without complaining about something not being implemented, if you are testing another part of the program.
Does OCaml have an equivalent operator?
ocaml
ocaml
asked Nov 10 at 23:15
Cjen1
8581730
8581730
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
You can use failwith "not implemented"
or raise
any exception you want. These functions, both defined in Pervasives
, return 'a
, which the compiler will infer to be anything you want it to be.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
You can use failwith "not implemented"
or raise
any exception you want. These functions, both defined in Pervasives
, return 'a
, which the compiler will infer to be anything you want it to be.
add a comment |
up vote
3
down vote
accepted
You can use failwith "not implemented"
or raise
any exception you want. These functions, both defined in Pervasives
, return 'a
, which the compiler will infer to be anything you want it to be.
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
You can use failwith "not implemented"
or raise
any exception you want. These functions, both defined in Pervasives
, return 'a
, which the compiler will infer to be anything you want it to be.
You can use failwith "not implemented"
or raise
any exception you want. These functions, both defined in Pervasives
, return 'a
, which the compiler will infer to be anything you want it to be.
answered Nov 10 at 23:22
glennsl
8,918102645
8,918102645
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244353%2fhow-to-leave-implementation-to-later-in-ocaml%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown