# What about having StrictData and non-strict semantics on functions as the default programming style?

**URL:** <https://discourse.haskell.org/t/what-about-having-strictdata-and-non-strict-semantics-on-functions-as-the-default-programming-style/7639>\
**Category:** Learn\
**Created:** [September 20, 2023, 9:37pm UTC](https://discourse.haskell.org/t/what-about-having-strictdata-and-non-strict-semantics-on-functions-as-the-default-programming-style/7639 "2023-09-20T21:37:57Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![atravers](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@atravers](https://discourse.haskell.org/u/atravers)\
**Post date:** [September 21, 2023, 11:18am UTC](https://discourse.haskell.org/t/what-about-having-strictdata-and-non-strict-semantics-on-functions-as-the-default-programming-style/7639/10 "2023-09-21T11:18:23Z")

</div>

> [@tomjaguarpaw](#):
>
> I want to minimize the amount of stuff I have to remember [to avoid space leaks].

Alternatively, we could use an implementation that has no (heap) space to leak e.g. figure 9 on page 24 of [On Inter-deriving Small-step and Big-step Semantics: A Case Study for Storeless Call-by-need Evaluation](http://www.zerny.dk/danvy-al-tcs12.pdf) (2011). Now if _that_ could be implemented in GHC (or some other Haskell implementation), I believe it would greatly reduce the need for strictness annotations…and the need for _“semi-duplicate”_ types with varying levels of strictness.

That we have _“semi-duplicate”_ definitions for varying levels of imperativity (e.g. `map` and `mapM`) already provides more than enough annoyance!

* * *

Erratum: I got the year wrong. 2011 was when the preprint was submitted - the paper was actually published in **2012** `>_<`

---

_[View the full topic](https://discourse.haskell.org/t/what-about-having-strictdata-and-non-strict-semantics-on-functions-as-the-default-programming-style/7639)._
