hassankhan / syngr Goto Github PK
View Code? Open in Web Editor NEWFixing the gaps in PHP's OO approach
Fixing the gaps in PHP's OO approach
Someone posted on Reddit or HN about trim() not working correctly, need to add more test cases then see what happens.
Hey, nice project. I had started something very similar some time ago but I realized that the oop approach doesn't work quite well as you can't force other to use your classes. Then I decided to go functional style, where you receive "kind of" unexpected input but produce predictable output; the result is a very simple and small api that plays nice with others. You can take a look at the code at https://github.com/eridal/prelude
I'd really like to join forces :)
Issue tracker for port to Zephir. Overall it shouldn't be insanely difficult, should just need to enforce static types wherever possible.
The biggest problem I see with this library is that everything is mutable. Just to illustrate this:
function getInitial(String $name) {
return $name->substring(0, 1);
}
$name = new String('Igor the Terrible');
$initial = getInitial($name);
var_dump($name);
//= string(1) "I"
// WTF!
You should always return a new instance of everything. You should never be able to change an existing value.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.