* [Caml-list] OCaml related article
@ 2001-04-22 13:55 Jonathan Coupe
2001-04-22 12:12 ` Jan Skibinski
0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Coupe @ 2001-04-22 13:55 UTC (permalink / raw)
To: caml-list
Mark J Dominus' excellent discussion of ML's type system (written for Perl
programmers..) is available at:
http://perl.plover.com/yak/typing/typing.html
Jonathan Coupe
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] OCaml related article
2001-04-22 13:55 [Caml-list] OCaml related article Jonathan Coupe
@ 2001-04-22 12:12 ` Jan Skibinski
2001-04-23 8:12 ` Xavier Leroy
0 siblings, 1 reply; 4+ messages in thread
From: Jan Skibinski @ 2001-04-22 12:12 UTC (permalink / raw)
To: Jonathan Coupe; +Cc: caml-list
On Sun, 22 Apr 2001, Jonathan Coupe wrote:
> Mark J Dominus' excellent discussion of ML's type system (written for Perl
> programmers..) is available at:
> http://perl.plover.com/yak/typing/typing.html
His conclusion though is that it is practically impossible
to introduce any kind of static typing to Perl. Contrast it
with http://www.cc.gatech.edu/~lex/ti/ti.html
where Lex Spoon attempts to deliver a type inference engine to
Smalltalk (sic!).
Jan
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] OCaml related article
2001-04-22 12:12 ` Jan Skibinski
@ 2001-04-23 8:12 ` Xavier Leroy
2001-04-23 5:13 ` Jan Skibinski
0 siblings, 1 reply; 4+ messages in thread
From: Xavier Leroy @ 2001-04-23 8:12 UTC (permalink / raw)
To: Jan Skibinski; +Cc: Jonathan Coupe, caml-list
> His conclusion though is that it is practically impossible
> to introduce any kind of static typing to Perl.
Dominus' claim is that if it could be done, it would still be largely
useless: since Perl has so many context-dependent automatic coercions,
nearly all programs would be correct, and the type system wouldn't
help much finding programming errors.
Actually, I believe one could do a soft typing system for Perl along
the lines of Mr. Spidey for Scheme
(http://www.cs.rice.edu/CS/PLT/packages/mrspidey/), using
constraint-based flow analysis. Of course, uses of "eval" would not
be checked at all. But Dominus' point that it would be largely
useless is probably true.
> Contrast it
> with http://www.cc.gatech.edu/~lex/ti/ti.html
> where Lex Spoon attempts to deliver a type inference engine to
> Smalltalk (sic!).
Why not? Constraint-based flow analysis can be applied to Smalltalk
(at least without the reflection features -- if you change the
behavior of method invocation, all bets are off), and since Smalltalk
has cleaner, more restrictive dynamic semantics than Perl, it could
actually be useful in finding errors.
- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] OCaml related article
2001-04-23 8:12 ` Xavier Leroy
@ 2001-04-23 5:13 ` Jan Skibinski
0 siblings, 0 replies; 4+ messages in thread
From: Jan Skibinski @ 2001-04-23 5:13 UTC (permalink / raw)
To: Xavier Leroy; +Cc: Jonathan Coupe, caml-list
On Mon, 23 Apr 2001, Xavier Leroy wrote:
> .. and since Smalltalk
> has cleaner, more restrictive dynamic semantics than Perl, it could
> actually be useful in finding errors.
I believe the other motivations are: to improve on documentation
(consistent naming policy is often not enough since it's tough to
enforce it in a consistent and yet readable way) to ease a
process of learning of a third party code and, first of all, to
have a tool helping to identify/create some sort of modular
structures within a given image.
To elaborate a bit on the last point:
As far as I know, inheritance is often being overused - resulting
in some artificial relashionships, which create some delivery
problems: how does one reduce the image size without removing
one class or one method too many? This is often a lengthy
post-mortem exercise - even though Smalltalk has variety of
excellent tools to help with such tasks.
Jan
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-04-23 10:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-22 13:55 [Caml-list] OCaml related article Jonathan Coupe
2001-04-22 12:12 ` Jan Skibinski
2001-04-23 8:12 ` Xavier Leroy
2001-04-23 5:13 ` Jan Skibinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox