@milleniumbug The ones that take two ranges, but only a single iterator for the second range (instead of begin/end for both ranges). With these, it's up to you to ensure that the second range is at least as large as the first. If you pass two full ranges, it can figure out the shorter on its own.
> The standard library has several algorithms that read from two ranges in order to determine their result. In most cases, the original C++98 standard fully specified the first range with a pair of iterators, and supplied only the first iterator for the second range, with a narrow contract requirement that the second range be at least as large as the first.
My question would be whether it would be better for the committee to spend its time on better things like getting ranges in, then deprecating all iterators and iterator-based algorithms.
@JerryCoffin No, iterator-based algorithms have value. Sometimes using a pair of iterators is handy and you don't want to always have to wrap them into ranges.
@Morwenn At least assuming the correct ctor is provided (and there's little reason not to) changing f(a, b, c, d) to f({a, b}, {c, d}) is hardly what you'd call a lot of overhead.
@JerryCoffin Well, I was more talking from an algorithm implementer point of view. It would often bother me to have to perform wrapping/unwrapping all over the place.
Also you can't fully implement something like std::inplace_merge with ranges only.
@Morwenn Hmm...I'll take your word for it (at least for the moment)--I haven't really tried to think through what's required specifically for inplace_merge.
@Morwenn Yes--I thought at one time about how to do nth_element with ranges, and came up with a couple of ideas that would have worked, but neither (none?) of them struck me as entirely satisfactory.
@Morwenn My point, however, wasn't so much "get iterators out" as "get ranges in" (and probably at some point deprecate use of iterators to form ranges, but at least IMO it's less important to tell people not to use them than to provide a better alternative so they don't normally want to).
I had pretty nasty visual bugs tonight, the deadly fields of conditions weren’t showing up :( "why am I getting burning and torment from rezzing my allay??"
I was really surprised how much I had trouble pressuring my targets whereas I have exp. with the dagger from WvW vs. close to nil with the sword (which I had been using til then), but after looking up the builds turns out I was still building and playing like a sword teef
@HubertApplebaum no it’s been top dawg for over a year now
both PvP and WvW btw
they had to seriously buff sword to make it… not suck anymore
(they also buffed dagger auto while doing so, anet-style)
@HubertApplebaum nope that’s the old PvP pseudo-berserker (with invigorating precision maybe), now berserker really is zerk—and there’s Marauder for trading off ferocity to vitality now
which would be pretty fun on warrior if not for the whole, ya know, warrior thing
Randomly joining electronic components without the slightest clue what they are (let alone what they do) is not the brightest idea in the world. Perhaps leave the electronics alone until you can go beyond calling everything "thingies"!! — PreferenceBeanFeb 27 at 19:59
Haha, I guess you got it. A friend of mine went and installed adware antivirus and asked me to remove it for him. I was pretty impressed; the programmers set it up to kill task manager and reboot itself using a couple daemons whenever the task was killed. Couldn't uninstall or delete it until I could stop it. I ended up using a batch file to task-kill through cmd
O.o Well, maybe you can write a script to play a couple days for you?
D: Well that's a killjoy. I realized that the only way to speed up that game was to rely on multipliers and stop hitting my head against the brick wall. I got to the point where the price jumped from x*10^27 for one hero to x*10^40 for The Dark Knight
Nearly got there, but took the nuke to my bad habit of playing the game; closed my eyes, deleted my progress, and I magically had no desire to play again
Yeah, Morgulis is by far one of the more useful ancients. Still, clickers are mindlessly addicting. You keep getting things, that are really just words on a screen. I mean, sure, they're rewarding because of the effort, but are they fun?
Well, all games are arguably useless. On the other hand, there's value in being able to use them to unwind and keep your problem-solving faculties intact...
Y'know, we need a meta-language; you program your own syntax and features in a header file, import it, and there's no longer a need for all these idioms to imitate other languages.
It has a few edge-cases that it solves, like allowing code re-use with large blocks of code in the middle. For example, you have the top half of a generic function, and the bottom set as macros and you can quickly define a new copy of the function with additional behaviours
I agree, they mostly make a mess of code. Better if the language makes less problems, rather than letting it become bloated with features that solve problems. Some languages feel like they constantly trip over their own feet xD
I agree. I started a python project 2 days ago; the emulator is basically finished, but the code can be toppled by a breeze. Load the wrong file format and it'll hiss. I've been trying to figure out how to enforce types >.> missing the point of python
Logs are definitely useful when the debugger and error message have no clue what happened. Just takes extra time (I suppose it's better than messing with variables until code works, as debuggers sometimes leave people to do)