generic

article

Fun with Generics

Intro

We all know about generics as a wonderful help to implement container data structures like lists, sets, bags etc. Much later than Eiffel, object-oriented programming languages like Java and C# have understood that generic parameters are a powerful extension to the type system and remove the need for many casts. So, what else can we do with generics beyond containers?

blog Experimental Graph Library

maverick's picture

I'm currently building an experimental library to deal with graphs. Its main features are:

  • It's general;
  • It provides a flexible adjacency list implementation for both directed and non-directed graphs;
  • The specifications of the classes are precise (they expressed as mathematical models using the EiffelSpec library);
article

How to use multi-constraint generics to implement reusable numeric algorithms

Introduction

The goal of this tutorial is to show you how you can harness the power of multi-constraint generic type parameters to implement versatile numerical algorithms.

Syndicate content