[Haskell-cafe] Re: can Haskell do everyting as we want?
Johannes Waldmann
waldmann at imn.htwk-leipzig.de
Wed Aug 4 09:13:29 EDT 2010
> However, if you tried to do "s.equalsIgnoreCase(", does it offer to
> insert every single String available and every function that could
> result in a String?
well, try this:
String s = "foo";
String t = "bar";
int u = 42;
s.equalsIgnoreCase(
it suggests s, t, and null (but not u),
so this is again type-based.
if you try completion on
s.equalsIgnoreCase(t.
then you see that those methods that return a String,
are at the front of the completion list.
J.W.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100804/0d491342/signature.bin
More information about the Haskell-Cafe
mailing list