Snippets tagged oop

  • Private Implementation Inheritance without boilerplate

    How to avoid delegation boilerplate in inhertance heavy OOP code while maintaining proper accessibility like seen here https://github.com/fsharp/fsharp/blob/master/src/fsharp/FSharp.Core/seq.fs#L82 and mentioned in Expert F# 2.0 "Using Partially Implemented Types via Implementation Inheritance " Uses auto-properties that only work with F# 3.0

    7 people like this

    Posted: 12 years ago by Associat0r

  • Command Pattern - Simple

    A simple implementation of a very basic command pattern that is being submitted to an Android app called GoF Design Patterns by Poash - highly recommended btw. This is imperative/oop in style, hope it helps someone. It is my first submission and I'm an F Sharp newbie!

    1 people like this

    Posted: 11 years ago by Richard Griffiths - SoulFireMage