You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Colorize could help, but only when color is supported (for example on a TTY).
A good improvement would probably already be when we get the types at call site and the overloads formatted in the same way, using a proper crystal format style. This would make it easier to read the signatures and help compare them.
Additionally, it would be super great if matching arguments could be lined up similarly. This should work great for short signatures. But as soon as there are many arguments which span multiple lines and optional arguments not present everywhere, this becomes super complicated.
Example for a relatively simple set of overloads:
Call:
- foo(String, c: Nil)
Overloads are:
- foo(a : String, b : Int32 = 0, c : Bool = true)
- foo(a : String, b : Float64, c : Bool = false)
- foo(a : String, b : Int64, c : Bool)
- foo(a : Time::Location, b, c : Nil)
Problem:
Example:
Feature request:
The text was updated successfully, but these errors were encountered: