« first day (1654 days earlier)      last day (3297 days later) » 

10:00 PM
I wish bison had more lookahead than just one single token :x
 
10:12 PM
so we return the E_ERROR token and halt instead of exception? doesn't look bad :)
 
@marcio you can not say. It's not enough information, there are pieces that are missed, it's whether this is expected as a return value or as an argument and whether it is root of a callable type (it's not if it's callable(callable($value): bool $cb). I think if a passed function has a relaxed input (relatively to what was expected) - that should not raise any errors as it is safe in regards to LSP (e.g. gist.github.com/nikita2206/70858de4709ddd8f9de3) /cc @ircmaxell
 
@marcio no, not halt
the rest is still tokenized
 
@NikiC but once you reach an error on bison you can't really proceed, can you?
 
It's nice to kill some time on a phone ;)
 
Anonymous
10:29 PM
@MarcelBurkhard are you on github?
 
@NikiC It's only tokenized when it's a lexer-side error, no?
 
@Worf Yeah, I can't believe that's actually a function.
 
i found out "calendar" exists just a couple days back. and it's not disableable :|
 
10:50 PM
I want to deprecate array_column and replace it with array_pluck and array_index_by.
I still can't believe that function made it.
It has two very differing behaviors depending on argument count.
 
@LeviMorrison array_index_by is like an awful name
 
Fine; indexBy.
 
I even have no idea what it is expected to do
 
I don't care.
@bwoebi indexBy exists in several JavaScript frameworks for ordering arrays by a certain value. That's where the name comes from, but I'm sure it has existed since the creation of associative arrays or maps.
 
@LeviMorrison do you have an example, I'm not sure if I understood you
 
10:57 PM
var keyData = [
  { 'dir': 'left', 'code': 97 },
  { 'dir': 'right', 'code': 100 }
];

indexBy(keyData, 'dir');
/* → {
    'left': { 'dir': 'left', 'code': 97 },
    'right': { 'dir': 'right', 'code': 100 }
}
*/
 
ok, so we have two fields: people that want parseless tokenization for when valid code doesn't really matter - e.g syntax highlighting - and people that need tokenization+parsing for operations where context matters - e.g static analysis - Doesn't the TOKEN_PARSE flag already solves that without interfere with the other group of usage?
 
@LeviMorrison mapBy maybe
 
oh dammit, can't edit the other message ^^
The changes involving E_ERROR would be completely irrelevant when token_get_all is on parsing mode.
 
11:30 PM
@Rangad blah - it's unplayable on an iphone 4s. The interface is just lagging all the time...
 
11:49 PM
how would you allow the template customizing the html produced by a markdown content? using DOM manipulation within the template? i use php templates so that's possible. or would you send the parsed markdown content as an oop structure (new Paragraph(), new Bold(), new Anchor()) which would be similar to DOM btw
 
@bwoebi Is yield-from merged into master?
 
@LeviMorrison since two weeks or so
 
Jolly good. I shall play with it.
 
@Worf no, you probably want to implement the visitor pattern. A good example: github.com/everzet/jade.php
 

« first day (1654 days earlier)      last day (3297 days later) »