Get Programming with F#: A guide for .NET developers by Isaac Abraham

Get Programming with F#: A guide for .NET developers by Isaac Abraham

Author:Isaac Abraham
Language: eng
Format: epub
Publisher: Manning Publications


1 Trying to load the owner’s account from disk

2 Returning the account if it was found

3 Creating a new account with a new Account ID if no account was found on disk

24.4. Implementing business rules with types

This last section touches on how to enforce a slightly higher-level business rule through the type system:

A user can go into an overdrawn state (draw out more funds than they have in their account). But after the account has become overdrawn, the user can’t draw out any more funds (although they can still deposit funds). After the balance returns to a non-negative state, the user can withdraw funds once again.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.