3 ms·
The syntax is crazy, but brilliant. I would never have thought of it myself, but now that I've seen it it's obvious. The main thing I wonder is whether the syn
by jamesaguilar 15y ago
The syntax is crazy, but brilliant. I would never have thought of it myself, but now that I've seen it it's obvious.
The main thing I wonder is whether the syntax is supported by vanilla objective c, or if Apple is cheating a little (i.e. building support for new hotness into the compiler).
- btn 15y agoThe visual format is supplied to the layout system as a string. It's completely independent of the Objective-C language syntax.
- zedshaw 15y agoI did this years ago, in a project called Claro, and then again in http://ihate.rubyforge.org/profligacy/lel.html http://ihate.rubyforge.org/profligacy/lel.html and pretty much every GUI framework I've done. I got the idea from Wiki syntax and the Cassowary constraint solver as well as Knuth's algorithm. Apple's done nothing original here.
- binarycrusader 15y agoI think whether they've done it well is more important than if they've done something original. Lots of people do original things, but not very well.
- stephth 15y agoThis is awesome. This concept of building elastic layouts with ASCII code is new to me and I agree with @jamesaguilar that it's one of those obvious yet genius ideas. Has anything been done towards this direction to generate CSS layouts? It seems like it could cure some headaches.
- rufo 15y agoYep: http://www.w3.org/TR/css3-layout/ http://www.w3.org/TR/css3-layout/