And I'd like a strongly and statically typed imperative language where
the IDE was able to infer types while I'm typing, somehow magically
visualizing interfaces that are inherent in the design, or automatically
detecting and marking "pure" functions.
... Yes, but I think it's more than political and it drives me crazy. To me, it's like some freakish version of the Sapir-Whorf Hypothesis. I have the deep...
I would definitely want expressions/closures as first-class citizens like in assertThat { assertThat(false) } abortsWith TestFailedException Doing such things...
... what, you mean like they had in Modula-3 and Ada 95? (wistful sigh). S. Steve Freeman http://www.mockobjects.com Winner of the Agile Alliance Gordon Pask...
... As I recall the hype machine of the time, a lot of the loss of interest might be attributable to the attention focused on COM, DCOM, Corba, etc. to solve...
... apart. ... Specifically in the case of Modula-3, forcing too many bitter students to write Modula-2 and Modula-3 code may not have been the happiest of ...
... We'll just have to disagree on this one. I regard being taught in Modula-3 as one of my lucky breaks (that and getting to work with some of the people who...
Hello, Steve. On Friday, November 16, 2007, at 7:29:55 AM, you ... I'd much prefer Smalltalk or LISP to Modula though. Very constraining for my taste and I...
... The above languages felt overengineered to programmers who just wanted to compile a program. Programmers wanted to move in direction of "just code away"...
I always run into problems with conditionals (if/switch/unless etc), so I would like them to go away for two reasons: 1) To make the code more readable (this...
... You seem to be quite serious, which puzzles me. How can you possibly write a serious program without making any decisions? If you can't, how can you make...
Hi Alan, ... I have no idea how serious Daniel is, but the only way I know is to replace the decisions with various forms of specialization: inheritance,...
... And, how do you start specialization via inheritance? Well, you ask the user "do you want fried eggs or scrambled?". And then you write if (choice ==...
... Or you could do: Egg choice = ... Order order = choice.order(); or choice.order(kitchen); or kitchen.prepare(choice) // needs multi-methods or visitor like...
... I'm sorry, but tell me that these methods don't themselves contain a conditional, and how they work without them. In the first case, I expect the ... to...
... Is Mozart better than Led Zeppelin ? It's all music in the end :) Of course, there is an if somewhere: in the language, in the assembly code, in the CPU...
Hello, Alan. On Thursday, November 15, 2007, at 9:31:34 AM, you ... It /is/ if-else. It's the guard clause pattern version. Ron Jeffries www.XProgramming.com ...
I would try something like this: Order scrambledEggs = new ScrambledEggs() Order poachedEggs = new PoachedEggs() Order amFull = new NothingToEat() Menu menu =...
Hi, ... Generally, I believe we test code that contains decision that should already have been made. Another feature to consider: A person I talked with a...
Conditionals do tend to become rarer as design gets better. I often grep for 'if' or 'else' when I'm about to look at a code base, just to get a feel for it. ...
Hello, Michael. On Thursday, November 15, 2007, at 9:49:38 AM, you ... They do. I'm not sure they go away though ... Ron Jeffries www.XProgramming.com Keep...
Hi Ron, Michael, all, ... One thing that gets smaller is the number of places in the code that know about the map between the behavior-selection criteria and...
Hi, Charlie, I am pretty serious, but I'm not intelligent enough to foresee all possible implications. :-) What I've noticed is that I use conditionals less...
Hi Daniel, ... I'm with you on minimizing explicit conditionals - and even more so "memorized conditions" in the form of boolean member variables. I somehow...
Something Charlie wrote about in the "Testable Languages" thread caught my attention because I'm having that problem just now. I have a program that validates...
The loop at the centre of this looks like this (hoping Yahoo leaves the CRs in place): Bool result = true; Foreach checker c in checkers c.Validate( result); ...
Ha! Good try. :-) But as you say not too elegant. Also in my case, each checker adds an item to a report when the check fails. I could, I suppose, use the...
As you're building a report containing error messages, you might try making an error list as a collecting parameter and have validate just add to it on error...