News for hackers. Stuff that matters.
Re:T-Ruby is Ruby with syntax for types by Lio on Saturday December 27, 2025 @06:24AM (#46401030)
I think they've missed a trick there, they could have used `|` like low-type does.

e.g.

  def greet(name: String | "Hello"): String
I know it's all subjective but I think that reads better and it's valid ruby.

To be honest low-type with a static analysis tool would be my favourite syntax for this.

https://github.com/low-rb/low_type

There are no comments on this comment yet.