[–] mooism2 14y ago ↗ Available in Haskell with the ViewPatterns extension.http://haskell.org/ghc/docs/latest/html/users_guide/syntax-e...
[–] pavel_lishin 14y ago ↗ Seems like something you could do with decorators in python, but would probably end up looking more confusing than the original.
[–] ikevin 14y ago ↗ If you are using Ruby you might be able to use some variation of the "around alias" mentioned here:http://media.pragprog.com/titles/ppmetr/spells.pdfMaybe even create your own little dsl for your approach. [–] k33n 14y ago ↗ I love that it's under a section called "spells". And actually it looks like it could be done with a variation of this.This is why I love Ruby. It goes out of its way to let programmers be creative :)
[–] k33n 14y ago ↗ I love that it's under a section called "spells". And actually it looks like it could be done with a variation of this.This is why I love Ruby. It goes out of its way to let programmers be creative :)
4 comments
[ 2.6 ms ] story [ 17.4 ms ] threadhttp://haskell.org/ghc/docs/latest/html/users_guide/syntax-e...
http://media.pragprog.com/titles/ppmetr/spells.pdf
Maybe even create your own little dsl for your approach.
This is why I love Ruby. It goes out of its way to let programmers be creative :)