| Latest |Kites |Pictures |Programming |Life |
![]() [filed under Programming]OMeta ![]() Wanna see the future of programming? Check out OMeta, it allows you to extend your language to include your own instructions. Neat. For example, in my code I am forever looping over dates. I may display every day this month, or every week this quater or every month this year. Wouldn't it be cool to extend the language to have this ability built into it? I'd extend foreach( $vars as $var ) and make it foreachmonth( $date_range as $month ) it may not be that useful, but that tiny bit of syntatical help would be worth the effort of extending the language. The way python is able to loop through a list and do something with each element: tmp = [x*2 for x in list] is so cool it needs to be built into PHP. Take a look at how macros are built in nemerle, scroll down to the for loop. They add c style for loops to the compiler. I want to do this in PHP. Domain specific mini languages are the future. Comments |
| Unique hits [] : Total hits [] : Server Grind [0.0125 seconds] |