Dear list,
First of all, thank you for
baoug.org! I am really enthusiastic about
this initiative of a website that (partly) checks the behavior of
ocaml programs.
A few months ago, I was thinking about this kind of service for
teaching purposes, but I will come back on this in the "expected
features" thread.
For now, I have a question about proposing a problem that introduces
new type definitions.
Simple example: suppose that the problem asks to write a particular
function main of type my_type -> int where my_type is a newly defined
type.
Is it possible to introduce new type definitions in a challenge? If
yes, where should the new types be defined: in the control code by the
contributor, in the solution code by the user, or both?
I suppose that only the control code must define the types, but I
would rather wait for a confirmation before proposing a contribution.
Also and more generally, this raises the issue of having some
predefined code (types, values, modules, functors, objects, etc) set
by the contributor and available for the user through a given
signature. For now, the only way I can imagine to make it visible for
the user is via the description of the puzzle. Is there any other way?
If no, do you have anything planned to make it more convenient?
Thank you in advance for your kind answers.
Cheers,
Nicolas