Introducing Type Guard to Steep
Takeshi KOMIYA • Matsuyama, Ehime, Japan • Japanese • Talk

Date: April 16, 2025
Published: Tue, 27 May 2025 00:00:00 +0000
Announced: unknown

Type checking in Ruby often requires narrowing the types of objects, especially within complex conditionals or method chains. While Steep already supports type narrowing through built-in methods like #is_a? and #nil?, real-world Ruby applications frequently rely on user-defined logic for type narrowing.

In this talk, I will propose "Type Guard," an enhancement to Steep that enables developers to define custom type narrowing logic. This feature aims to bridge the gap between Steep's capabilities and the diverse needs of real-world Ruby projects, providing a more seamless type-checking experience.

Attendees will learn how Type Guard works, and how it can be integrated into their projects.

https://rubykaigi.org/2025/presentations/tk0miya.html

RubyKaigi 2025

Explore all talks recorded at RubyKaigi 2025
monochrome
Junichi Kobayashi
Chris Hasinski
Vinicius Stock
Ryo Kajiwara
Koichiro Eto
Marco Roth
Tomoya Ishida
+66