ruby - What languages support "dynamic" metaprogramming? -


in metaprogramming ruby, author states few languages, including ruby, can manipulate @ runtime. other languages besides ruby can support type of metaprogramming?

the specific quote i'm referring in introduction on page xix:

in book, i'll stick different meaning of metaprogramming, focusing on code manipulates @ runtime. few languages can effectively, , ruby 1 of them. can think of dynamic metaprogramming distinguish static metaprogramming of code generators , compilers.

most languages days moving towards providing kind of functionality, it's not "clean" it's in ruby. these languages have lot of capabilities (reference):

  • actionscript
  • basic
  • beanshell[3]
  • clojure
  • coldfusion
  • common lisp , other lisps
  • groovy[4]
  • e programming language
  • javascript
  • vbscript
  • matlab / octave
  • lua
  • objective-c
  • perl
  • php
  • powershell
  • python
  • ruby
  • smalltalk
  • tcl

other languages such java , c# (reference) have ways of inspecting , creating code @ run time, it's not "natural" in languages, , feels lot hack.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -