Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feather request] Make ic a function instead of an instance, to improve distinction and intuitiveness #192

Open
YunfangHou opened this issue Oct 5, 2024 · 0 comments · May be fixed by #193

Comments

@YunfangHou
Copy link

YunfangHou commented Oct 5, 2024

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:

  1. 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.
image
  1. IDE's auto completion will add parentheses after function automatically, but not for an instance or variable.
  2. 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.

@YunfangHou 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 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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant