Alexander Prokhorov

Results 81 comments of Alexander Prokhorov

I wonder why it's `private protected` and not `private internal`. What makes `protected` part of `protected-and-internal` more important than `internal` part? I'd rather have something messy like `protected&internal` and `protected|internal`...

@alrz What? I know I'm late to the party. Like, 3 years late or so. But I still find `private protected` FUBAR.

@jnm2 When did `private protected` win, by the way? It lost badly in the [poll on CodePlex](https://roslyn.codeplex.com/discussions/541194#PostContent_1244635). Just because of C++/CLI?

Why not use C# binder from Microsoft.CSharp.dll? It'll choose an override just like C# does. Not sure about its availability on all platforms though.

DLR is used by C# compiler to implement `dynamic` keyword. [Binder](https://msdn.microsoft.com/en-us/library/microsoft.csharp.runtimebinder.binder%28v=vs.110%29.aspx) isn't well-documented, but it's mostly about creating weird [CallSites](https://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.callsite%28v=vs.110%29.aspx) like `CallSite` and passing results from Binder's methods to them....

Considering DLR is built-in and exactly matches behavior of C#, I don't think it qualifies as a sledgehammer. I'd say using anything else would be reinventing the wheel.

The only alternative to `create_function` is `eval` which doesn't allow caching of compiled code, so causes considerably worse performance if the same string lambda is called more than once with...

@Bilge You have a point. I'll add a minor 2.x version I think, as master is currently unfinished 3.0. Hm, PHP 7.3 is available. Thank gods, they didn't remove deprecated...

@Bilge Back-ported changes from master which affect supported PHP versions, added tag **v2.4.2**. I may have broken something in the process (messed up rebase, had to reset branches), so please...

@andre719mv @sanmai What is your problem exactly? The code works. The error is muted. If you don't use string lambdas, the deprecated function in never executed. Where do you get...