---
title: "Discussion on \"The Promises Your Compiler Believes: Kotlin Contracts Beyond require and run\" | Hashnode"
description: "Discussion on \"The Promises Your Compiler Believes: Kotlin Contracts Beyond require and run\". How require, run and isNullOrEmpty smart-cast, how to write your own contracts, and the production bugs a wrong promise causes."
url: "https://hashnode.com/posts/the-promises-your-compiler-believes-kotlin-contracts-beyond-require-and-run/6b0e72182bd65d52ec3b690e"
---

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

Discussion

# [The Promises Your Compiler Believes: Kotlin Contracts Beyond require and run](https://android-expert.hashnode.dev/the-promises-your-compiler-believes-kotlin-contracts-beyond-require-and-run?utm_source=hashnode&utm_medium=feed)

How require, run and isNullOrEmpty smart-cast, how to write your own contracts, and the production bugs a wrong promise causes.

1d ago · 10 min read · android-expert.hashnode.dev  
Read the article

-   [#android-development](https://hashnode.com/tag/android-development)
-   [#kotlin-contract](https://hashnode.com/tag/kotlin-contract)
-   [#smartcasts](https://hashnode.com/tag/smartcasts)
-   [#kotlin-compiler](https://hashnode.com/tag/kotlin-compiler)
-   [#null-safety](https://hashnode.com/tag/null-safety)

## Written by

[Android Expert](https://hashnode.com/@android-expert)

@android-expert · Chennai, India

  
[View profile](https://hashnode.com/@android-expert)

Android Expert· Kotlin, Jetpack Compose & production pitfalls

Android Engineer &amp; Kotlin Advocate. 🚀 Deep dives into Jetpack Compose, Coroutines, and Clean Architecture. Turning complex code into scalable solutions. 🛠️✨

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
