---
title: "Discussion on \"Strongly typed Id in f#\" | Hashnode"
description: "Discussion on \"Strongly typed Id in f#\". Using a primitive type to store ids is inherently problematic. I explore the minimal way of creating a type-strong Id object in f#."
url: "https://hashnode.com/posts/strongly-typed-id-in-f/63203d97526d775aa7f67ff5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Strongly typed Id in f#](https://blog.cwb.dk/strongly-typed-id-in-f?utm_source=hashnode&utm_medium=feed)

Using a primitive type to store ids is inherently problematic. I explore the minimal way of creating a type-strong Id object in f#.

Sep 13, 2022 · 2 min read · blog.cwb.dk  
Updated Oct 1, 2022  
Read the article

-   [#f](https://hashnode.com/tag/f)
-   [#ddd](https://hashnode.com/tag/ddd)
-   [#functional-programming](https://hashnode.com/tag/functional-programming)

## Written by

[Casper Weiss Bang](https://hashnode.com/@cwb)

@cwb · Aalborg, Denmark

  
[View profile](https://hashnode.com/@cwb)

Leveraging DDD, CI, and TDD to improve the maintainability of software

I am Software Engineer, turned Data Engineer, that aims at bridging the gap between business and software. I enjoy functional programming due to testability and maintainability - I enjoy distilling problems utilizing Domain-Driven Development, lower-case agile, and a ton of other principles.

## Responses 1

Markdown supported · ⌘↵ to post

[Casper Weiss Bang](https://hashnode.com/@cwb)

[Sep 13, 2022](https://hashnode.com/posts/strongly-typed-id-in-f/63203d97526d775aa7f67ff5/comment/63205e725483096daa0a78d0)

I've realized that hashnode doesn't support syntax highlighting for F#. I might figure out a way to embed it in a better way. For now i hope that it is still valuable
