News for hackers. Stuff that matters.
Re:Crystal: PHP microframework based on anonymous functions by smt88 on Tuesday March 10, 2015 @08:10PM (#9181683)
Why use this instead of Slim? Slim is basically a fully-baked version of this (with a similar router), and it's decoupled, so you can use only the parts that you want.
Re:Crystal: PHP microframework based on anonymous functions by EmanueleMinotto on Tuesday March 10, 2015 @08:22PM (#9181743)
It's more an experiment than a real microframework, it's absolutely not recommended for production. The contributing page should sound like a challenge :) https://github.com/EmanueleMinotto/crystal/wiki/Contributing
Re:Crystal: PHP microframework based on anonymous functions by smt88 on Wednesday March 11, 2015 @12:50AM (#9182636)
What's the point of these restrictions?

They're not strange/crazy enough to make it a fun programming challenge, and for something that's intended for use (even non-production use) they make the code less usable.

"No namespaces" and "no new functions or classes" in particular don't make any sense. Anonymous functions are just like functions, except they're harder to identify in a stack trace.