« first day (2216 days earlier)      last day (2731 days later) » 

12:00 PM
@brzuchal No minimum required, simply 2/3.
 
Ok, THX
 
It's 2/3 of the people who bothered to vote. If that's only 3 people it will still pass.
 
what are we voting on?
 
So a campaign of targeted voter suppression could work for you, as well \o/
I am still really on the fence about that one
 
Wes
12:02 PM
i think it's something the language should do instead, like
$foo->setA()&>setB()&>setC()&>setD();
being equivalent to
$foo->setA(); $foo->setB(); $foo->setC(); $foo->setD();
in fact i think someone in this room was working on this very thing
 
My gut feeling was to vote for it, but when I see people like joe and bob voting against, I do have to wonder if I'm wrong
 
@brzuchal WidgetFactory isn't the best example, that one should have a Widget return type.
 
why are @bwoebi and @JoeWatkins voting against it?
I think i want to vote yes
 
@kelunik it may, this example was added by @Danack that may have usage in low typed legacy codes as a helper for wider refactor
I think
@bwoebi thinks as far as I understanded that it wouldn't have wider usage
but I actually doesn't really know why @JoeWatkins voted "No"
@Gordon taht may be a good choice|vote :P
 
@Jimbo Do you have slides from the last time somewhere online?
 
12:06 PM
I feel like lead own campaign :)
 
@brzuchal Which is useless
Or at least should be
 
I like the object typehint for completeness sake and also for being able to write somewhat more generic code. I remember several occasions where I would have needed that. Then again, an interface usually solved these occasions.
 
From my point of view the most useless is resource typehint
 
I was hinting at the "campaign" thing. You wrote the rfc and now you wait. There is nothing to campaign. Either people want it or they don't
 
@Gordon I feel the same, especially when dealing with some objects where intercase while using objcts created with some library requires additional extending
@PeeHaa yeah, I know, sure everybody has own decisions, sorry thats the newby problem
 
12:10 PM
@brzuchal yes, that is the occasions I was thinking about. But you can solve this through adapters and interfaces which would be cleaner than putting some object typehint which is telling us nothing about the expected contract
 
But re the rfc yeah I try not to write code that generic so that I need object.I personally don't see the usefulness for me. Not feeling strong enough about it either way
 
Thats okay
 
So I am left with "for completeness sake"
 
12:24 PM
@PeeHaa I just cant wait results
 
ok, I voted yes - for now. Feel free to convince me different.
 
@Gordon @Ocramius voted yes
 
Wes
lol
 
:P
 
@Gordon thanks for voting!
 
Wes
12:27 PM
imo that takes even more apart the differences with primitives. core functions should be modified or have an alternative covering both objects and scalars, eg 123 instanceof Int must work and return true, get_class(123.) must return float and so on. the object type declaration has no value domain, like resource. though as I'm a big fan of "if people want it and you don't, you can just not use it" i'm not opposing to it
 
@PeeHaa is that a good thing?
 
No comment
 
:p
 
hi
anyone familiar with Authy SoftToken?
 
Wes
what i think it's a bit stupid is that $foo instanceof object is not going to work, am i right?
 
12:30 PM
right
 
@Wes you shouldn't use it in domain logic, ofc
As I mentioned before, this is more interesting for infrastructure/library code
 
s/for/for very generic
 
but even something as simple as a domain event stream, or a command bus would benefit from it
because they rely on get_class(), spl_object_hash(), etc
I already went extensively through the use-cases
 
@Wes that would require Object superclass
 
Wes
@Ocramius the fact that you need it is a consequence of the fact that php the language created the difference. if the core functions all supported the same way both objects and primitives, there would be no need for it, imho
 
12:34 PM
@Wes Why should it work? We have is_object
 
@Wes we can't change it now, and it would take 10 years for that to change anyway, whereas this is a 2 LOC change that fixes this particular need for many generic domains
 
Wes
it's what i'm saying @kelunik there should be only instanceof working on both primitives and objects, not is_bool is_null is_int is_float is_object is_peehaasmomma
 
!!> is_peehaasmomma('Jimbo');
 
[ 7.0.0 - 7.1.0RC5 ] Fatal error: Uncaught Error: Call to undefined function is_peehaasmomma() in /in/P9IXk:1 Stack trace: #0 {main} thrown in /in/P9IXk on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
[ hhvm-3.14.4 ] Uncaught exception: std::bad_alloc <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
Wes
@Ocramius i know, this is why i don't care
 
12:36 PM
[ hhvm-3.12.0 - 3.13.2 ] Fatal error: Uncaught Error: Call to undefined function is_peehaasmomma() in /in/P9IXk:1 Stack trace: #0 {main} <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
[ 5.6.0 - 5.6.27 ] Fatal error: Call to undefined function is_peehaasmomma() in /in/P9IXk on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
we need that ^
 
@Wes Just propose it.
 
@Wes that might be wider view and I like it, but for now it's kinda unreachable and it doesn't exclude to introduce object typehint for now, isn't it ?
 
@brzuchal I don't think it's finished
 
Can you please point an area, that might be helpfull to improve if it fails ?
 
12:41 PM
variance
 
shit I always mess that a|an|that prefixes
 
@Wes we had the idea of changing instanceof semantics, but I'd rather suggest a new operator instead
so you don't overload the existing one with new meaning
and we can deprecate that instead
 
Wes
yeah @Ocramius changing no, new versions, yes
in all this, i'm making omelettes. if i disappear it's because i'm at the hospital
 
@JoeWatkins We don't have that anywere, no?
@Ocramius typeof?
 
Would first need to see how this actually improves usage/expressiveness
 
12:46 PM
But why not overload? int, bool, etc. don't make sense on the right side anyway, as they're reserved class names.
 
Not overloading because current API behaves in a certain way, and you have to maintain BC with it
 
Wes
instanceof could be overloaded indeed, other functions maybe not
 
changing something is more harmful that providing a new API and deprecating the old one
so you can add deprecation notices, etc
 
@Ocramius Depends on the API.
 
any public API
which includes usages of current AST nodes
 
Wes
12:50 PM
if($foo instanceof Foo){} // no break if supported primitives
if(!$foo instanceof Foo){} // no break if supported primitives, as it returns false even if $foo is a primitive. ie it would enter the if anyway
omelettes are good
 
@Wes I'm fairly sure that ! has a higher precedence than instanceof
 
Wes
nope, not in php at least
 
What happens when you try to ! an object in PHP?
 
Wes
in fact i've suggested we should have $foo !instanceof Foo syntax :P
 
@Wes Yeah, seems like instanceof has a higher precedence
 
Wes
12:56 PM
just because that reads funny
 
That's... surprising...
To say the least...
 
@JoeWatkins in UI how are you handling resource destruction? I.e. $w = new Window(...); unset($w); - This doesn't generate a closing event for the window. (I guess you don't care about this scenario?)
 
@Leigh I'd probably have something like $windowManager->destroy($w)
 
@kelunik I don't think really think it's useful without it ... we do allow covariant returns, just not declaratively ...
@Leigh you have to explicitly destroy the window in the right handler ...
when you destroy the window, it destroys all the controls ... while there is a parent -> child relationship all the way up the hierarchy, it's not as simple as unparenting every control and destroying it ... I'm not exactly sure why that is, or if it will stay that way ...
 
Wes
'member when we the world were so proud of america choosing their first black president? #USElection2016… https://twitter.com/i/web/status/796243282636500992
 
1:02 PM
Probably better to explain what I am trying to do. I have a pair of functions for a different lib. SDL_CreateWindow, SDL_DestroyWindow. How can I detect (without __destruct) that an object is being destroyed
 
oh the free_obj handler
afk a while
 
gaaah, it's on the handler, not the class entry. Thank you! Totally missed that
 
@JoeWatkins I don't understand your point, could you rephrase?
 
1:16 PM
@kelunik If I have class B extends A {} and class D extends C {}, and A::foo() declares a return type of C, then B::foo() must also have a declared return type of C, even though it may return an instance of D. At run time, D will pass the return type check for C (we have run-time variance) but even though it's compatible you cannot declare B::foo()s return type as D (no compile-time variance)
 
@DaveRandom Yes, but we don't have it for classes either. So what's the argument to vote against object because it doesn't have variance?
 
class C {}
class D extends C {}
class A {
    public function foo(): C {}
}
class B extends A {
    public function foo(): D {} // technically valid, not currently possible
}
@kelunik because object doesn't tell you anything useful, afaict. It doesn't tell you anything about what you can do with that value.
 
@DaveRandom You can e.g. call get_class on it. Variance isn't related here at all.
But we could add support for variance, as we know that every class type declaration passes object declarations.
But we can also do so after the RFC passed as a appendix. No need to block the RFC if that's the only reason.
 
@kelunik I'm still on the fence about it and hence I have currently abstained. I have yet to see a case where that's actually useful but if others want it I'm not going to block it.
 
If you question the usefulness, that's fine. But @JoeWatkins said he voted against it, because of missing variance.
 
1:24 PM
Morning Comrads :P
 
What's Bob's case? /cc @bwoebi
 
> The input element's type ('number') does not support selection.
 
hi all, I am saving enum values in db column as "Y" & "N" , in site, i want to display as "YES" & "NO" for viewrs....

can i rename "Y" to "YES" & "N" TO "NO" in database itself or may i use some php code to display ?
 
I hate dom stuff so hard
@nsdlfefinedieicbe Just use a boolean?
Oh wait. You are using retard mysql?
 
@PeeHaa um... wat?
 
1:27 PM
yes mysql db with pdo
 
Wes
@kelunik the other day i found out this, also, why the warning? 3v4l.org/q7Tfs
 
@nsdlfefinedieicbe Use 1/0 or y/n. You might want to i18n it anyway
So yes. Use php
@DaveRandom JS input selection crap
 
thanks a lot @PeeHaa
 
Use 1/0, it's much cleaner to index and is forwards compatible if they ever decide to introduce a proper bool type
Use tinyint(1) as the data type
 
I can't force a num keyboard on a text input right @Wes?
 
1:29 PM
@DaveRandom i thought of renaming it because again i have to write php code..... as @PeeHaa suggested i will try php code to display "YES" or "NO" in site.....
 
Wes
@PeeHaa <input type="number"> ?
 
@nsdlfefinedieicbe s/renaming/use a different data type
 
@Wes 3v4l.org/cJFdq < Same here. We don't have any variance.
 
@Wes 16"
@Wes Yes, buuuuuuuuuuuuuuuuuuuuuut:
4 mins ago, by PeeHaa
> The input element's type ('number') does not support selection.
I can not haz selection stuff in that case
 
Wes
iterator to array as return is variance @kelunik (or array to iterator in params)
 
1:31 PM
@PeeHaa we can rename in "enum" also right? i just tried renaming is working.....
 
@nsdlfefinedieicbe well that's easy if you use 1/0, $yesNo = $row['field'] ? 'yes' : 'no'
 
@nsdlfefinedieicbe @DaveRandom suggested to use a different data type
 
Wes
@PeeHaa selection as? dom startOffset , etc? or user selection
 
He has a strange fetish for horrible things so I think he understands mysql better than me
selectionStart
selectionEnd
 
Wes
@PeeHaa ahahah, how did you count
 
1:33 PM
@Wes Yeah, missed that.
 
@Wes I asked @Jimbo's mom
 
Wes
i blurred the window, then focused back and noticed i had a brainfart :B
 
The warning exists, because you accept fewer arguments in the subclass.
 
23 hours ago, by bwoebi
@brzuchal but in general, there's not much use for it.
 
Wes
@kelunik how so? :|
 
1:35 PM
@Wes The parent accepts all iterable, so instances of Iterable and arrays, but the child only accepts arrays.
 
@brzuchal Well I agree, but not enough to vote against it. I don't see it as being actively harmful, just pointless. PHP is already full of harmless-but-pointless things, what's one more?
 
Screw this I'm going to just strip out non numeric characters with JS an convince the client
@DaveRandom Same
 
@PeeHaa Just keyup hook it, old technique works fine.
 
See sometimes you can say something sane
@DaveRandom Nope
That doesn't gimme numeric keyboard on phones
 
so wait, what is it that it doesn't let you do?
 
1:36 PM
Also keyup doesnt even do anything on at least android
@DaveRandom Piece of magic JS I inherited
Aaaaaaaaaand #WontFix
 
Right, but what is the actual goal here? Humour me for XY
 
@DaveRandom I'm considering this for completenes for other typehint, variance is fine, but feel like it's long way to it and actually that wasn't really point of this RFC which was all about simplier way to accept generic objects in typehint and return type
 
@DaveRandom I think it does some magic by "combining" 2 fields into one in a cross platform way
 
Wes
@kelunik yes, but why isn't it a fatal error?
 
Basically default behavior hijacking which always ends well
 
1:39 PM
@Wes BC probably.
 
evenin all
 
o/
 
@brzuchal Right but if you are asking for a generic thing, why would you restrict it to being an object? I have not seen any case where that constraint is actually useful. In that scenario it's generally something that if it were C you would use a void*, which imposes no such restriction. It's a generic box, I should be allowed to put whatever I want in it.
 
@bwoebi @JoeWatkins Can we still fix this for 7.1? 3v4l.org/1vIsF < Omitting the type is always compatible.
 
\o
 
1:41 PM
@brzuchal if you can show me a concrete example of something where that is a useful restriction then I will +1 it. I'm not going to -1 it, but I'm stuck at +0 without that.
 
@DaveRandom You still need to type is_object when working with objects
 
Actually more like about -0.125
 
@DaveRandom Hydration and DI and Mocks
 
@DaveRandom !!> var_dump((int) -0.125);
!!> var_dump((int) -0.125);
 
1:42 PM
@DaveRandom DI services need to be objects with generic type, there is no need to implement any interface because services most of the time came from different libraries
 
[ hhvm-3.14.4 ] Uncaught exception: std::bad_alloc <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
inb4 Trump's press manager start doing their jobs, in a few weeks he'll have been heard saying pro-abortion stuff and he'll start having an image of caring old bear.
 
@Jeeves We should just throw out hhvm now, because 1) nobody sane uses hhvm and 2) it's been brkoen for weeks now
 
@PeeHaa @DaveRandom thanks guys , this worked for me :
$status = array('Y'=>'Yes','N'=>'No');
<td>" . $status[$data['userStatus']] . "</td>
 
@brzuchal OK, the DI thing I get, for specifically this one case: Injector::share(object). That is the only case of those example where a type check saves you code.
 
1:47 PM
@DaveRandom concrete:
https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/EntityManager.php#L372
https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/EntityManager.php#L567
https://github.com/symfony/dependency-injection/blob/master/Container.php#L163
https://github.com/symfony/dependency-injection/blob/master/Container.php#L244
https://github.com/zendframework/zend-hydrator/blob/master/src/HydrationInterface.php#L18 and L19
 
8 mins ago, by DaveRandom
@brzuchal if you can show me a concrete example of something where that is a useful restriction then I will +1 it. I'm not going to -1 it, but I'm stuck at +0 without that.
Done. :P
 
Ugh, fine :-P
 
user6106260
0
Q: Balancing brackets with minimum changes

GuruI have a string s containing different types of brackets : () and [] . How can I balance a string of this type with the minimum possible number of reversals ? I can replace any bracket with any other one. For example : Cost for [)(] is 2, it becomes [()]. Cost for [](( is 1, it becomes []() . [(...

 
Thanks @kelunik
 
@kelunik having variance for formal types (classes) is an implementation problem that does not exist for this feature
 
1:52 PM
@JoeWatkins Sure, but why is that a reason to block the feature if we can simply add that afterwards?
 
I don't see why it can't be finished
 
@JoeWatkins We could also abort the vote now, but I don't see a reason to do so. It was an oversight, but it's not too late. 7.2 is far enough away.
 
@kelunik Slides here
 
but what is the rush, if you agree that the correct way to do is it to allow variance, then why on earth would you push on with it anyway?
fixing brand new features makes absolutely no sense to me, when the feature can be written as we desire it the first time ...
 
@JoeWatkins would it be complex to provide a variance change in this feature? I can find some time to arrange to prepare the patch and then draft second RFC than, will you be my mentor in this case and help me with some drafting? I could make it before 7.2 FF
 
1:58 PM
@Jimbo Thanks.
 
@JoeWatkins that may be because providing variance IMHO should be voted separately because you never know what would be the result ?!
 
@JoeWatkins It's not a fix. It's an additional feature that's not combined into one but could be.
 
I think it's more reachable with small steps that everyone understands and know what voting for
 
I'm always happy to help
@kelunik you can disagree with me, but you called it an oversight, not me ...
I think you know what you should do ...
 
Thanks, so whatever the result will be I'll ask you for help after voting
 
2:00 PM
@JoeWatkins It's not my RFC, I don't have to decide it.
 
if you fail the vote now, you have to wait a long time to bring it up for another vote
 
I may don't know all the rules , why do you think so ?
 
whatever the change is, it is not substantial (it will be a few lines only), you're looking at waiting 6 months ... I just don't see why you would risk that ...
 
I would not sit back and relax after that.
You mean "6 months pass from the time of the previous vote" ?
 
yes
 
2:05 PM
@JoeWatkins Question is whether adding variance then is substantial enough.
 
thats for "Rejected Proposals" only
 
@kelunik I don't think so, I don't think it will effect the votes of many of the no voters ...
 
@JoeWatkins Adding it would certainly affect your vote, maybe others, so it seems to have some substance.
 
@brzuchal rejected == not enough votes to pass
 
I'm not talking about repairing an RFC but about adding next feature like "Variance on object typehint"
 
2:07 PM
this is an argument you don't need to have is my point ...
 
yes, I understand
 
@JoeWatkins So you just propose to stop the vote now and change the RFC and then restart?
 
yes
maybe you'll have to wait the two weeks if anyone calls you out on it, but I don't think anyone will ...
 
@JoeWatkins wiki.php.net/rfc/iterable also doesn't mention variance but variance is allowed.
 
I think it was assumed that variance was not important because we don't have it elsewhere, without realizing that we don't have it elsewhere for reasons that do not apply to this ... we do want it where we can have it, and we can have it here ...
 
2:10 PM
I think we can patch it in even without a RFC.
 
I think that's a very fast route to rubbing people up the wrong way
 
Sending a mail to internals should be enough, I guess there will be consensus.
 
I wouldn't allow you to do that in my branch :)
I don't like the rush ... there's no need for it ...
we're not even in the release cycle for this version, talking about rfc's on top of rfc's is nonsensical at this point imo
 
@JoeWatkins Is this exactly what you want to work? gist.github.com/brzuchal/8add0fc826410b5cb7c3ed76b9a67fbd
 
yes
 
Maybe we can bug @Sara? Unless she doesn't want to have anything to do anymore with the project :P
 
I think she may have a clue
 
Wes
The electoral college is a disaster for a democracy.
ahahahaha. the irony
 
you are assuming that Trump wont also get the "popular vote"
 
I'm going to have to listen to this idiot talk
 
2:23 PM
That's not nice to say about @tereško
 
haha
 
:P
 
not but seriously, he's the most frustrating person to listen too, his patterns of speech are just bizarre ...
 
@PeeHaa sorry, I forgot to check ma narrative
 
also, let's not loose sight of what is really important ... his stupid hair ...
 
2:24 PM
:D
 
@PeeHaa That's nothing to do with @tereško .. "idiot talk" refers to Trump .. (which is totally true)
 
Thanks captain obvious!
 
lol
 
2:25 PM
> "Fred. Great guy.
Marianne and Elizabeth. Very shy.
Robert. Great friend.
Melania and Don and Ivanka and Eric and Tiffany and Barron. I love you.
Rudy Giuliani. Unbelievable.
Secret Service. Smart guys."
 
I can't watch, it's just too much to cope with
 
@PeeHaa on slightly related note: people with surnames Pain, Trouble and Problem should not go in military ... especially not groundforces
when they earn the rank of Major, it probably ends up causing some issues
 
heheheheh
 
> The Secret Service people. They're tough and they're smart and they're sharp and I don't want to mess around with them, I can tell you.
it just appears as if it was written by an 8 year old
> Boy, oh, boy, oh, boy. It's about time you did this right. My god. Nah, come here. Say something.
 
2:28 PM
what the fuck are you talking about man
 
@JoeWatkins Not sure. imo the droid tech has made some pretty big steps
#Trump1997
No? Nobody? Skynet?
Oh screw you all
 
I've thought of something we can all look forward too ...
mashups ...
 
@PeeHaa Audio meeting at 7, but which timezone?
 
The only timezone that matters
 
excellent fodder for comedy also ...
 
2:32 PM
@PeeHaa UTC then
 
Nope. UTC is weaksauce
 
user6106260
Someone please help with this question : stackoverflow.com/questions/40504845/…
 
user6106260
Thanks
 
Why would you ever need to do something like that?
 
2:34 PM
s/Code Igniter/laravel
 
It's either some code you have to write for some school assignment, broken input which needs to be fixed at the other end or you are just crazy
 
That's a really shitty school assignment, if it is one
 
It is, but I'm actually hoping it's the case
Otherwise OP should find a better job
inb4 bob spends 1 week writing a regex
4
 
It seems to me like it's impossible in anything less than O(the humanity) time
Algorithms are not my strong point and my brain power is somewhat depleted right now anyway
 
What about O(my fucking god)
 
2:38 PM
big-OMFG notation
 
Maybe O(fuck off) is the expected outcome
 
:P
 
user6106260
Lol, funny
 
user6106260
It's not a school assignment by the way
 
user6106260
I'm just crazy, but I really need to find a way to do it
 
2:39 PM
So tell whoever gives you shit to unshittify it
 
using a parser to do parsing is usually a good idea
 
brb smoking and stuff
 
writing a parser is not a good idea, because they exist already ...
 
user6106260
Does it need bruteforce ?
 
Wes
@Gordon now i get why some of you said not everything is lost. speech is actually very inspirational and i hope sincere
 
2:40 PM
HAHAHHAHA WAIT WHAT THE FUCK DO I DO NOW
4
 
ok that one is actually funny
 
Wes
@tereško do you watch south park?
 
that got me
 
@PeeHaa which is why I posted it here, event though I am quite ok with the result
 
@Wes are you serious ?
 
Wes
2:41 PM
@JoeWatkins it's the only decent speech i heard from him
 
I genuinely cannot read it without becoming annoyed, at him, at stupid people generally, but mostly at him ...
 
Wes
i was expecting him like "TAKE THIS YOU [insults]. AHAHHA I WON YOU LOST. AHHAH" and kinda things
 
user6106260
@PeeHaa what do you think, do I have to test all the possibilities ?
 
well he can't do that, he now has to work with all the people he has pissed off over the last year ...
 
@Guru Yes, but that's not your biggest problem. You need to come up with a list of candidates and then brute force (i.e. test in O(n) time) them to determine which one is the "best" by some metric.
You really should explain what real world problem you are trying to solve
because I can 100% guarantee that there is a better way
 
2:45 PM
@JoeWatkins it's all about function zend_do_perform_implementation_check in zend_inheritance right ?
It acts strange
 
when bill clinton spoke, it was hard to take him seriously, but he was capable of being coherent, he could be elucidating ... trump can't do it, he's as simple as he appears to be, and that is fucking scary
 
Are PHP's ldap_ calls part of core, or does it need an extension?
 
user6106260
@DaveRandom, there is no "parent" problem of this actually, this is the core problem, the kind we find in competitive programming contests.
 
@Guru where did it come from?
 
@JoeWatkins It actually compares all arguments if proto type_hint is iterable then examine every overloaded arg if is iterable, but in case of return type this validation seems to be turned in other direction for return type overloaded check with the same function proto->type_hint is it actually a good behaviour?
 
user6106260
2:47 PM
@DaveRandom, I don't have the source, but I can send you the full statement
 
user6106260
@DaveRandom here you are : pastebin.com/S1C9SDfv
 
@JoeWatkins I'm messing up smth, will check that later
 
@brzuchal I'm just about to go get my kids from school, I'll be back in half hour ... I'll look at it ...
 
@Wes I wouldnt go so far as to call it inspirational and I am very sceptic that it is sincere. I think it is mostly confusing but leaves a tiny bit of hope that the world will not end within the next four years.
 
Wes
yeah maybe inspirational was a bit too much :B but nice words really... i hope everything's going to be fine..
 
2:51 PM
on a side note: I hope that the remaining european nations that still believe in humanitarianism will now bond even stronger. there never was a bigger need for a european supranation than today.
 
user6106260
@DaveRandom what do you think now ?
 
@Gordon Wow you must be fun at parties :P
 
@Guru thinking. There is certainly an important difference there from your question though, in that the input always contains matching pairs, they are just not balanced.
That simplifies the problem considerably
 
@PeeHaa invite me to one and find out
 
user6106260
@DaveRandom, no not necessarily, the number of open brackets can be different from the number of closed brackets
 
2:54 PM
@Gordon You are hereby invited to me next year's birthday party. fyi I kinda like beer
 
@PeeHaa will your mom be there?
 
Probably yeah. But don't tell @Jimbo
 
@PeeHaa challenge accepted
 

« first day (2216 days earlier)      last day (2731 days later) »