Typos and minor issues#926
Conversation
This function does exist. The name was simply misspelled in the doc. It should be: nk_window_set_focus
Just add something like /* for backwards compatibility */
#define NK_EDIT_COMMITED NK_EDIT_COMMITTEDright below nk_edit_events definitions, and no one will have any problems with this. EDIT: Rob posted his comment like 5sec before mine with the same suggestion.
Trying to snuck breakage under "fixed typo" is pointless. This is easily avoidable. |
| * | ||
| * To change window position inside the stack occurs either automatically by | ||
| * user input by being clicked on or programmatically by calling `nk_window_focus`. | ||
| * Changing the window position inside the stack occurs automatically via | ||
| * user input, ie by being clicked. |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
I swear I search for and didn't find that function years ago when I first noticed the comment. This is what I get for making notes about things with the intention to do something about them eventually, and then when I finally do something, I don't do as much due diligence as I should sometimes because surely I did it earlier. Mea culpa.
I wasn't trying to sneak it in otherwise I wouldn't have explicitly called your attention to it. And my comment was not about this issue alone as I said, and it wouldn't matter what my commit was about, your opinion would be the same regarding any breaking change. Am I wrong? It's a chronic problem that adds up. Sure an extra define/enum here is harmless, especially relative to most of these "do we break things or not" debate. However, we're just making our lives harder because when we finally do start making breaking changes we'll never remember all the things we wanted to break but were just saving to bundle together, and we'll forget any hacks/workarounds we make and any sacrifices in functionality we made on the altar of, "well we can't do that, that would break things." |
Add macro for backward compatibility
0e748e6 to
88380b4
Compare
|
On the plus side, at least I'm getting more practice with interactive rebasing and editing commits. |
|
@RobLoach No need to squash it here. The separation in this PR is quite good. You usually want to keep unrelated stuff in different commits when patching something important. Otherwise, doing things like |
No worries.
I agreed for a change here, and under #912, and those are still technically "breaking". I only care about old C code to remain compilable. Don't force people to patch their code and I won't complain. I'm not entirely sure, why are you trying to start discussion about "breaking changes" here, under PR about typos. This is probably the worst place to discuss such things. This time, even Rob was faster than me with requesting the old symbol to remain. Fixing the typo is the weakest argument for breaking anything. Keeping the old symbol by introducing a macro is a good enough compromise. I get my fake compatibility and you get your pedantic fix. If it was up to me, I wouldn't allow even that, but I'm not in charge here. If someone gets affected by this change anyway, well, it's not in my interest to waste my free time arguing about it. |
You agreed to a non-breaking change, same as #912 where we explicitly discussed how it was non-breaking according to the definition you give right here: the developer can update the library and not be forced to change anything. And for nth time, updating the library does not force people to patch their code. The library does not magically update itself in there repos. This isn't libc. Heck, even with dynamic libraries, between flatpaks, appimages, snaps, and plain old-fashioned tarball packages, no one is forced to update anything under almost any circumstances these days.
I'm trying to wear you down. If I can't convince with logic and common sense it's my only option. Looks like I have another opportunity in another PR today. I'm only half joking. And actually I was faster than Rob, considering I listed an equivalent change to keep it backward compatible in my very first message. The typo is not the argument. The argument is the same regardless of the message carrier. Major updates are normal and semver exists for a reason. Your personal preference to both always use the latest version of Nuklear and never have to make any changes to do so doesn't change that.
Exactly. Not only would you never agree to any breaking change, but if you were in charge you would resist even non-breaking changes that could've been breaking without a concession. That points to something almost pathological imo. I am posting this at the same time I comment on the other PR. They sort of go together. |

I broke this up into 3 separate commits
vertexes -> vertices
Remove comment about non-existent function nk_window_focus(). I can't find any evidence it ever existed, even in the original repo. All I could find was this which doesn't really make sense since even searching the original repo all I could find is the comment. Very strange. Anyone know what's going on here? Is there a programmatic window focus function by another name?
NK_EDIT_COMMITED -> NK_EDIT_COMMITTED
Every time I haven't used an edit field in a while I forget that it's spelled wrong. I'm fine to appease @sleeptightAnsiC and just do this for now instead:
but honestly... everyone just needs to accept that breaking changes and major version bumps are both inevitable and even a good thing, not something to be avoided at all costs. Otherwise stuff like this just spreads over time.
@RobLoach, sorry I meant to get both this and my other mini one in over the weekend, and then yesterday but my internet was acting up (or maybe just Github? hard to tell). No hurry.