---
title: "Discussion on \"The Function That Never Returns\" | Hashnode"
description: "Discussion on \"The Function That Never Returns\". So what is the problem?\nfunc divide(_ a: Int, by b: Int) -> Int {\n    if b == 0 {\n        fatalError(\"b input must not be zero\")\n    }\n    return a / b\n}\n\nfunc greeting(_ name: String) -> String {"
url: "https://hashnode.com/posts/the-function-that-never-returns/69dede7091716f3cfb8c9d37"
---

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

Discussion

# [The Function That Never Returns](https://hudaios.hashnode.dev/the-function-that-never-returns?utm_source=hashnode&utm_medium=feed)

So what is the problem? func divide(\_ a: Int, by b: Int) -> Int { if b == 0 { fatalError("b input must not be zero") } return a / b } func greeting(\_ name: String) -> String {

Apr 15 · 3 min read · hudaios.hashnode.dev  
Read the article

-   [#swift](https://hashnode.com/tag/swift)
-   [#ios](https://hashnode.com/tag/ios)
-   [#mobile-development](https://hashnode.com/tag/mobile-development)

## Written by

[huda elhady](https://hashnode.com/@huda_elhady)

@huda\_elhady

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

iOS Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
