Should entries representing constructors in the component browser be capitalized? #6568
-
I will just repost my response from today's bookclub, because it is important to me and I feel like it may get lost on Discord. Also discussion will be cleaner in a separate place. It is also very confusing to me that the entries corresponding to Enso types and constructors which are written as Not only this is inconsistent - searcher shows me lowercase but once I insert it it becomes (correctly!) uppercase - so the code inserted is different from what searcher showed. But also it makes searching harder for me. I'm already used to seeing these capitalized names, having worked a lot with them in Text mode (and I imagine any GUI user will be too, as in the final code / on nodes they will show capitalized). But the searcher shows them lowercase - which is a sight that I'm not used to. So it makes the experience a bit uncomfortable because I need to translate in my head between lower and upper case. Not only that, but it makes it harder to distinguish methods (lowercase) from constructors (capitalied) in the CB. Yes, I see some rhombus vs circle icons - but these tell me nothing - I need to learn and remember which icon means what and I'm not at that level of GUI expertise yet. Whereas the lowercase/capitalized distinction is very well known in the Enso world, so I don't understand why not just rely on this distinction here as well. Picture showing capitalized |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
I didn't know we are showing lowercase letters in the searcher always. I agree this can be confusing. On the other hand though .... if you think about the whole new node design, like this: Then the expression on this node is basically |
Beta Was this translation helpful? Give feedback.
-
The Component Browser was designed to be less a "completion" but more "node browser" tool, so it shows the demangled name of the node. It's quite expected that code will differ from the displayed in CB. Also, I wonder if user will need to pick constructors from the Component Browser when widgets will be available? Most constructors will be inserted by drop-down widget. |
Beta Was this translation helpful? Give feedback.
-
During the call with @wdanilo and @radeusgd we decided to keep all things lowercase in the widgets; when a widget is edited as "Enso code", the user will see constructors as in code, i.e. uppercase. When we implement it, we'll see if it's confusing and decide about next steps (which may include changing Enso language to use lowercase only). Regarding CB, here we should make a distinction between "code editing mode" and "adding node mode":
Currently, we have a mix of both modes, where suggestions on list are demangled, but input is context-aware. I will create an issue for new modes soon (as part of #6622 probably). |
Beta Was this translation helpful? Give feedback.
-
After all, another answer reached the new design - the widgets and CB should display Enso code without changing case. |
Beta Was this translation helpful? Give feedback.
After all, another answer reached the new design - the widgets and CB should display Enso code without changing case.