## User login## Navigation |
## archives## Type evolution during constructionIn a language with inheritance, the evolution of type during construction (and devolution during deconstruction, if appropriate) is a bit tricky. I was recently asked for pointers to papers or references on this, and came up dry on a Google search. Can anyone suggest papers or references addressing this issue? ## Programming with alternativesI've come up with a new concept, called 'alternative programs', where expressions can have multiple alternatives. I wonder if there are any papers out there that discuss a similar concept. I'm having trouble defining the concept, but here is a try: Every expression takes the form of a sequence of alternative expressions, syntactically enclosed within curly brackets and separated by commas (in the case of a single alternative, curly brackets are omitted). The combination of two alternative expressions results in the cartesian product combination of their alternatives. Example alternative expressions: ```
``` I've taken the bold step to generalise the above into the following: Consecutive alternatives in a sequence that are equal are compressed into singletons, then prefixed with a colon, together with the multiplicity of the consecutive equal alternatives. A compressed representation of a sequence is called the canonical representation of a sequence. Next to that, multiplicities are of type rational and can be negative (where negative multiplicities are prefixed with an underscore). Luckily, the cartesian product of alternatives can be naturally defined over negative and rational multiplicities. Example canonical representations: ```
``` |
## Browse archives## Active forum topics- Programming Languages as Mathematical Representations
- Viability of a static type system (like ML) for a relational language?
- Looking for references on the expressiveness and computational completeness of a relational programming language
- language handling of memory and other resource failures
- Whither FRP?
## New forum topics |

## Recent comments

10 hours 17 min ago

10 hours 24 min ago

1 day 5 hours ago

1 day 9 hours ago

1 day 10 hours ago

1 day 10 hours ago

2 days 19 hours ago

2 days 20 hours ago

2 days 20 hours ago

2 days 20 hours ago