|
Werthog posted:having trouble understanding why this would possibly be the correct behavior unless there was a valid way of using the stream operator within a nested template argument list, apart from spergy "when in doubt, fail" attitudes there is A<int, 1024>>2> a;
|
# ? May 1, 2012 21:01 |
|
|
# ? May 28, 2024 16:11 |
|
Werthog posted:having trouble understanding why this would possibly be the correct behavior unless there was a valid way of using the stream operator within a nested template argument list, apart from spergy "when in doubt, fail" attitudes
|
# ? May 1, 2012 21:01 |
|
ahhh spiders posted:excellent, no rebuttal from confirmed old crank Internaut. as usual you're an android developer game, set, match
|
# ? May 1, 2012 21:01 |
|
Internaut! posted:you're an android developer i develop for ios and in the past i developed C++. you're an old gently caress who's quickly becoming irrelevant
|
# ? May 1, 2012 21:02 |
|
Gazpacho posted:apparently the c++ committee had long discussions about that before someone finally mentioned that instead of throwing an error they could tweak the parser state to accept it
|
# ? May 1, 2012 21:02 |
|
Werthog posted:apart from spergy "when in doubt, fail" attitudes "hm, im off track and might not have a goddamn clue what context im in, BETTER CHAREG AHEAD"
|
# ? May 1, 2012 21:03 |
|
JawnV6 posted:"hm, im off track and might not have a goddamn clue what context im in, BETTER CHAREG AHEAD" ambiguity has the potential to add a fun, wacky dimension to programming that i think future generations will really appreciate
|
# ? May 1, 2012 21:05 |
|
ahhh spiders posted:i develop for ios and in the past i developed C++. you're an old gently caress who's quickly becoming irrelevant cool I have many iOS devices link your apps
|
# ? May 1, 2012 21:05 |
|
JawnV6 posted:"hm, im off track and might not have a goddamn clue what context im in, BETTER CHAREG AHEAD" unironically this the old-school beardo attitude of crash-and-burning whenever there is the tiniest recoverable error is so stupid
|
# ? May 1, 2012 21:05 |
|
Internaut! posted:cool I have many iOS devices link your apps gently caress you
|
# ? May 1, 2012 21:05 |
|
Tiny Bug Child posted:unironically this nice troll
|
# ? May 1, 2012 21:06 |
|
going from python to ruby sucks because reference counting garbage collection takes care of a lot of poo poo for you for example i have a method that does a buffered read of a file from s3 and writes it to disk a separate method would then untar that file on disk, but the untar would always complain about unexpected EOF but if i tried untarring the file after that exception was thrown, poo poo was fine turns out i wasn't explicitly closing the file, which only appeared inside the one method, but that meant it just kind of hung out with an unflushed buffer until the exception cleanup closed the file
|
# ? May 1, 2012 21:09 |
|
ahhh spiders posted:there is ohshit
|
# ? May 1, 2012 21:11 |
|
Sock on a Fish posted:going from python to ruby sucks because reference counting garbage collection takes care of a lot of poo poo for you is garbage collection guaranteed to be immediate when an object goes out of scope in ruby?
|
# ? May 1, 2012 21:11 |
|
Werthog posted:ohshit kind of contrived, sure, but it exists
|
# ? May 1, 2012 21:11 |
|
ahhh spiders posted:is garbage collection guaranteed to be immediate when an object goes out of scope in ruby? nope i think it runs periodically
|
# ? May 1, 2012 21:12 |
|
ahhh spiders posted:gently caress you I was honestly expecting a list of commercially successful well-reviewed apps
|
# ? May 1, 2012 21:13 |
|
ahhh spiders posted:kind of contrived, sure, but it exists but wait, there's no opening < to match those >s, couldn't the lexer still figure it out JawnV6 posted:hm, im off track and might not have a goddamn clue what context im in, BETTER CHAREG AHEAD"
|
# ? May 1, 2012 21:14 |
|
Internaut! posted:I was honestly expecting a list of commercially successful well-reviewed apps i'm working on an ios app but my android app is already well-reviewed
|
# ? May 1, 2012 21:15 |
|
Werthog posted:but wait, there's no opening < to match those >s, couldn't the lexer still figure it out i dunno, you can construct that scenario though A<B<int, 1024>>2>> ab;
|
# ? May 1, 2012 21:16 |
|
ahhh spiders posted:lua owns world of warcraft addons are written in lua
|
# ? May 1, 2012 21:17 |
|
JawnV6 posted:
|
# ? May 1, 2012 21:17 |
|
jooky posted:world of warcraft addons are written in lua a lot of games use lua. grim fandango used lua. lua is old as heck
|
# ? May 1, 2012 21:18 |
|
Sock on a Fish posted:nope i guess this sort of right? a quick skim of some docs says it runs whenever theres no more room for objects in the heap or also at some other times? anyway it seems horrible
|
# ? May 1, 2012 21:23 |
|
why wouldn't you run into that problem in ruby then
|
# ? May 1, 2012 21:24 |
|
so if i'm understanding correctly, it's not that it's impossible to parse, just that it's a pain in the rear end maybe they shouldn't have made ">>" mean 3 (at least?) different things in the first place?
|
# ? May 1, 2012 21:25 |
|
ahhh spiders posted:why wouldn't you run into that problem in ruby then you definitely would run into that problem just something i didnt expect coming from python and none of the 'do you know python? well here is ruby!' primers mentioned it
|
# ? May 1, 2012 21:26 |
|
Werthog posted:so if i'm understanding correctly, it's not that it's impossible to parse, just that it's a pain in the rear end i guess my example wasn't technically ambiguous unless you only read it left to right and didn't use any kind of contextual inference but yeah the stream operator is loving stupid
|
# ? May 1, 2012 21:29 |
|
also technically i didn't use the stream operator in my example
|
# ? May 1, 2012 21:30 |
|
Nested templates vs the bitshift operator are symptomatic of C++'s poor design, but they're not a fundamental issue with the language so much as just a minor mistake in the grammar. Every major compiler will provide a decent error message in C++98 mode, and should accept it in C++11 mode.ahhh spiders posted:what's the ambiguity in C++? The problem with C++ is that is grammar is undecidable and its template system is Turing-complete. Together, this means that it is literally impossible to create a C++ parser. The only way to process C++ is to compile it. Perl 5 (and probably 6) has a similar issue.
|
# ? May 1, 2012 21:32 |
|
C++ is so loving full of ambiguity around types and variable decls and that guy had to go on about >> smdh.
|
# ? May 1, 2012 21:33 |
|
ahhh spiders posted:nice troll stop pointing it out you're boring
|
# ? May 1, 2012 21:35 |
|
Janin posted:Nested templates vs the bitshift operator are symptomatic of C++'s poor design, but they're not a fundamental issue with the language so much as just a minor mistake in the grammar. Every major compiler will provide a decent error message in C++98 mode, and should accept it in C++11 mode.
|
# ? May 1, 2012 21:36 |
|
Janin posted:Nested templates vs the bitshift operator are symptomatic of C++'s poor design, but they're not a fundamental issue with the language so much as just a minor mistake in the grammar. Every major compiler will provide a decent error message in C++98 mode, and should accept it in C++11 mode. yeah that was my bad, using words without regard for their actual definition anyway thanks for enlightening me y'all, time to go learn flex apparently
|
# ? May 1, 2012 21:42 |
|
do lua
|
# ? May 1, 2012 21:42 |
|
lua is a simple, beautiful little flower
|
# ? May 1, 2012 21:43 |
|
ahhh spiders posted:lua is a simple, beautiful little flower too bad about the language itself.
|
# ? May 1, 2012 21:55 |
|
Janin posted:lua is the only embedded interpreter I've seen that actually uses a proper state value instead of just going "hurp durp everything's global!", which makes it about a hundred times easier to work with than python or guile. what's wrong with it?
|
# ? May 1, 2012 21:56 |
|
i mean, you're probably trolling, or just a moron, since you're Janin, but i'm interested to see what contrived complaint you come up with
|
# ? May 1, 2012 21:56 |
|
|
# ? May 28, 2024 16:11 |
|
bitch you best step off i'mma loving cut you
|
# ? May 1, 2012 22:01 |