POV-Ray : Newsgroups : povray.off-topic : All bow to the mighty Python : Re: All bow to the mighty Python Server Time
4 Sep 2024 15:23:24 EDT (-0400)
  Re: All bow to the mighty Python  
From: scott
Date: 21 Apr 2010 11:21:47
Message: <4bcf180b@news.povray.org>
> In Haskell, about the worst thing you might have to type is
>
>   Data.ByteString.Lazy.Char8.empty
>
> If you're sensible, you'll alias this so you only write
>
>   BS.empty
>
> or similar. Suddenly autocomplete seems a whole lot less necessary.

Still useful for when you write the alias though at the top of your 
function/program.

> Of course, the *other* function of autocomplete is not to save typing, but 
> to help you look stuff up faster. Generally in Haskell, remembering the 
> name isn't the problem; it's remembering what the hell the difference 
> between "insert" and "update" is. The type signature will usually tell you 
> that; if not, you need the documentation. ASSUMING THERE IS ANY! >_<

AutoComplete in Visual Studio Express usually gives you a line or two of 
explanation underneath the function name and parameter list - see attached 
image.  After you have chosen the function, you can scroll through the 
various overloads if they exist to get more details.


Post a reply to this message


Attachments:
Download 'image1.png' (34 KB)

Preview of image 'image1.png'
image1.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.