[Prev][Next][Index][Thread]

Re: Some Dylan improvements



In article <wk3dpaj9yj.fsf@double.co.nz>,
Chris Double  <chris@double.co.nz> wrote:
>> B) add a way to specify a module interface beyond mere names
>
>Would it be possible for the compiler to infer these type
>specifications? By putting that stuff in the module section, wouldn't
>it be just a duplication of what is already there?

OCaml is very neat in this respect.  If there isn't an interface,
it infers one.  If there is one, it checks that the implementation
matches it.

Dave.



References: