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
The ic is imported as an instance of IceCreamDebugger and function __call__ is invoked to print variable value in the console when the instance is initialized.
The problem is that:
In the user's IDE, ic will be highlighted in the color of instance/variable, not a function. It's not as visually recognizable as print, which is highlighted in the color of function, as shown in the image below.
IDE's auto completion will add parentheses after function automatically, but not for an instance or variable.
Invoking an instance is not as intuitive as invoking a function.
It would be better if there is an independent function which can be imported in the user's code.
The text was updated successfully, but these errors were encountered:
YunfangHou
changed the title
[Feather request] Make ic a function instead of an instance
[Feather request] Make ic a function instead of an instance, to improve visibility
Oct 5, 2024
YunfangHou
changed the title
[Feather request] Make ic a function instead of an instance, to improve visibility
[Feather request] Make ic a function instead of an instance, to improve distinction
Oct 5, 2024
YunfangHou
changed the title
[Feather request] Make ic a function instead of an instance, to improve distinction
[Feather request] Make ic a function instead of an instance, to improve distinction and intuitiveness
Oct 5, 2024
The
ic
is imported as an instance ofIceCreamDebugger
and function__call__
is invoked to print variable value in the console when the instance is initialized.The problem is that:
ic
will be highlighted in the color of instance/variable, not a function. It's not as visually recognizable asprint
, which is highlighted in the color of function, as shown in the image below.It would be better if there is an independent function which can be imported in the user's code.
The text was updated successfully, but these errors were encountered: