---
title: "Discussion on \"Why first(s, typemax(Int)) returned an empty string in Julia\" | Hashnode"
description: "Discussion on \"Why first(s, typemax(Int)) returned an empty string in Julia\". One accented letter made Julia's first(s, typemax(Int)) return an empty string. The cause was an integer overflow, fixed in one line."
url: "https://hashnode.com/posts/julia-nextind-saturate/6b026ba8d1a066ee4753e38a"
---

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

Discussion

# [Why first(s, typemax(Int)) returned an empty string in Julia](https://ashokramsi.hashnode.dev/julia-nextind-saturate?utm_source=hashnode&utm_medium=feed)

One accented letter made Julia's first(s, typemax(Int)) return an empty string. The cause was an integer overflow, fixed in one line.

1d ago · 6 min read · ashokramsi.hashnode.dev  
Read the article

-   [#julia](https://hashnode.com/tag/julia)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#debugging](https://hashnode.com/tag/debugging)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)

## Written by

[Ashok Ram](https://hashnode.com/@ashokramsi)

@ashokramsi · Tiruppur, India

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

Open source contributor. Rust, TypeScript, Python, Java

I contribute to open source developer tools: Tauri, Biome, oxc, Julia, Quarkus, Grafana, Burn and a few more. I start from an issue I can reproduce and a test that fails, then fix it. Here I write up the ones worth telling: what broke, why, and how the fix got through review.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
