POV-Ray : Newsgroups : povray.off-topic : My first C++ program : Re: (And in Haskell. Obviously.) Server Time
1 Oct 2024 07:19:17 EDT (-0400)
  Re: (And in Haskell. Obviously.)  
From: Orchid XP v8
Date: 20 Sep 2008 13:41:50
Message: <48d535de$1@news.povray.org>
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> I think Haskell is line oriented. Commands end at the end of lines. 
> 
>   What happens if the expression is very long? For example, a function
> could take a large amount of parameters, all of which are long expressions
> using long variable names.

Put each argument on a seperate line, indented further than the function 
name.

   foo
     arg1
     arg2
     arg3

>   I think I'm starting to understand *why* Haskell people prefer using
> short and cryptic variable names rather than long and clear ones: If they
> did the latter, they would run out of space in their limited lines... :P

Heh. Haskell programs *do* tend to end up with pretty long lines, that's 
for sure. ;-)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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