A place to keep my thoughts on programming

Tag Archives: promise

Promise: Method slots and operators

Before getting into method slots, here's a quick review of the Promise lambda grammar: lambda: [<signature>] <expression>; signature: (<arg1>, … <argN>[|<return-type>]) arg: [<type>] <argName>[=<init-expression>] expression: <statement> | { <statement1>; … <statementN>; } A lambda can be called with positional arguments … Continue reading

August 13, 2010 geek, Promise , ,

Promise: Object notation and serialization

I thought I had only one syntax post left before diving into posts about attempting to implement the language. But starting on a post about method slots and operators, I decided that there was something else i needed to cover … Continue reading

August 9, 2010 geek, Promise , ,

Reproducing Promise IoC in C#

Another diversion before getting back to actual Promise language syntax description, this time trying to reproduce the Promise IoC syntax in C#. Using generics gets us a good ways there, but we do have to use a static method on … Continue reading

August 4, 2010 .net, geek , , ,

Promise: Building the repository pattern on the language IoC

Before I get into the code samples, I should point out one more "construction" caveat and change from my previous writing: Constructors don't have to be part of the Type. What does that mean? If you were to explictly declare … Continue reading

July 26, 2010 .net, geek, Promise , ,

Public Static Void – Go at OSCON

My favorite Keynote at OSCON was Rob Pike's "Public Static Void", which in a nutshell is "Why we created Go". But it is also a history lesson of how we got from C to C++ to Java and C# and … Continue reading

July 24, 2010 geek , ,

Promise: IoC Lifespan management

In my last post about Promise i explained how a Type can be mapped to a particular Class to override the implicit Type/Class mapping like this: $#[User].Use<MockUser>; This registration is global and always returns a new instance, i.e. it acts … Continue reading

July 22, 2010 .net, geek, Promise , ,

Promise: IoC Type/Class mapping

Before I can get into mapping, I need to changed the way I defined getting an instance in Type and Class definition: Getting an instance in Promise, revisited When I talked about, I eluded to it being a call … Continue reading

July 19, 2010 .net, geek, Promise ,

Promise: Inversion of Control is the new garbage collection

Before continuing with additional forms of method defintions, I want to take a detour through the Inversion of Control facilities, since certain method resolution behavior relies on those facilities. IoC is one feature of Promise that is meant to not … Continue reading

July 17, 2010 .net, geek, Promise , , , , ,

Promise: Constructor revisionism

Only 3 posts into the definition of the language and already I'm changing previously published specs. Well, that's the way it goes. I'm currently writing the article about language level IoC which I eluded to previously, but the syntax effects … Continue reading

July 15, 2010 .net, geek, Promise ,

Promise: Defining Types and Classes

Once you get into TDD with statically typed languages you realize you almost always want to deal with interfaces not classes, because you are almost always looking at two implementations of the same contract: the real one and the Mock. … Continue reading

July 13, 2010 .net, geek, Promise ,