Skip to main content

PHP 7.1, all languages converge here please...

Well, I've just spent the last half an hour reading the release notes for PHP 7.1 alpha, and in particular the changes regarding the use of array short-form syntax, that's '[]' to you and me.

My lasting impression what that:
  1. other scripting languages already do this so PHP is only playing catch-up.
  2. Lisp

Once again, a language proudly announces a "new" feature that actually already exists half a century ago in Lisp. One day we will all realise that Lisp is actually more productive than "ECMA script based language foo" and start using it.

Lisp

For all of its wondrous capabilities, Lisp still suffers from a seemingly snobby community that eschews anything remotely close to a "noob" question at times and it can be hard to get to grips with because as yet, apart from Slime and Emacs, there is still a lack of decent IDE support.

There's been a lot of discussion recently on the Lispworks forums about tarting up the appearance of the Common Lisp Hyper Spec (CLHS) documents but again their is a lack of appreciation for appearance and how it affects perception, especially for people learning.

The bravest effort yet, and a single handed one at that, is buy a chap called MichaƂ ~phoe Herda, he has started a project called the Common Lisp Ultra Spec, a green room implementation. He deserves a medal just for getting as far as he is. Here is the link: http://phoe.tymoon.eu/clus/doku.php

So, PHP, keep on improving!

Comments

Popular posts from this blog

Cross platform development with Scheme

Just a quick note about something I recently found whilst trying not to buy MOCL… http://www.lambdanative.org/ LambdaNative is developed and maintained by the Pediatric Anethesia Research Team (PART) and the Electical and Computer Engineering in Medicine (ECEM) group at the University of British Columbia (UBC). I have spent a week or two evaluating it and accidentally contributed a pull request that got merged and one that didn’t and I have to say that, for what it offers, it is awesomely good. Having personally spent many hours with it now, I do not yet think it is ready for mainstream development for a few reasons. I don’t mean that it a bad way either. What I mean is that the language, Scheme, is not really that widely known and as such it probably won’t break out into the public arena any time yet. That’s a real shame because I think that they have achieved an amazing thing; total abstraction of the underlying platform with a really powerful, underestimated language. ...

Angular.JS ... absolutely awesome BUT...

Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaagh! Sort the documentation soon please!  More soon, I really do like it though. :)

PHP and Lisp: multiple-value-bind (MVB)

This is another article in my attempts to find new ways of looking at PHP and making it less of a chore to type in all that code. As much as I love PHP I hate wasting keystrokes. More typing is more errors is more grief. Being an off and on user of Lisp, although not as much as I used to, one of the things that I always liked in Lisp was the ability to be able to return multiple values from a function at once using (values) and then marry that with (multiple-value-bind) to create convenient named bindings for whatever you were about to do. I recently found myself wanting to return a couple of values from a helper function and I just didn't want to go to the trouble of having to type all those character required to create an array with keys for the two values and then I remembered MVB and a little light went on in my head! If somebody else has already done this then I apologise up front but it was new to me and I haven't seen it anywhere else so this could be a first! ...