[Haskell-cafe] Re: can Haskell do everyting as we want?

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Wed Aug 4 09:14:45 EDT 2010


On 4 August 2010 23:13, Johannes Waldmann <waldmann at imn.htwk-leipzig.de> wrote:
>
>> 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.

Huh, last time I tried an IDE for Java (which was admittedly quite a
while ago) it wouldn't do anything like that...

I stand corrected then.

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list