You are viewing a single thread.
View all comments
10 points

I, uh, actually kind of like the idea. If you just visually converted primitives to a toggle after you type true/false, and let you delete it like any other text, it could be a small convenience on any flags you might change during the development process.

permalink
report
reply
3 points

As long as it’s not literally a toggle that you can interact with.

I can only imagine the horrors of accidentally clicking in the editor while selecting some text and quietly changing certificateIsValid = false; to true or something like that.

permalink
report
parent
reply
2 points

Nah, make it a keybind like alt-shift-click and give it a deafening sound like throwing an industrial breaker.

permalink
report
parent
reply
2 points
*

I mean this as a joke but you might be right. A quick search suggests that no one implemented something like this yet.

permalink
report
parent
reply
0 points

As a visual indicator, sure.

permalink
report
parent
reply
4 points

Oh, I could easily see a trainwreck of an implementation. But if this was just a display option like color coding keywords and variables, but you could click to change the underlying true/false? I might add it.

permalink
report
parent
reply
3 points

More technical details in the full article ;)

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 3.7K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments