POV-Ray : Newsgroups : povray.off-topic : C# 4.0 Default parameters : Re: C# 4.0 Default parameters Server Time
9 Oct 2024 16:16:12 EDT (-0400)
  Re: C# 4.0 Default parameters  
From: nemesis
Date: 4 Feb 2009 12:29:47
Message: <4989d08b$1@news.povray.org>
Darren New escreveu:
> nemesis wrote:
>> More OO, or more assemblyish?  I mean, you individually feed the stack 
>> and then call a function using those arguments already in the stack. ;)
> 
> Well, no, it's not a stack, it's an object. And each call can, for 
> example, set error codes or throw exceptions or some such. So if there's 
> no letter-sized paper loaded

It's a saved stack, let's say.

> Kind of like the whole command/query separation.  A bit more verbose, 
> but also more clear and maintainable. (Command/query separation is 
> basically that only functions that don't return a value are allowed to 
> modify the object. Or, in C++ terms, all non-const methods must be void.)

I don't like the whole OO BS.  Despite being submitted to it daily for 
the last 20 years or so.  Functional programming and scripting too 
opened my eyes to a much better model for software programming.


Post a reply to this message

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