Dylan macro system is badass!
We're not talking C/C++ crapy preprocessors or LISP macros, the Dylan macro facility is a type of BNF translator, able to translate most any syntax or grammar. Behold, I can convert a non-oo looking method definition:
define method move-to (self :: <window>, x, y)Into this:
end;
define-method <window>.move-to(x, y)With this little macro:
end;
define macro define-methodNice!
{ define-method ?class:name . ?name:name (?params:*)
?:body
end } =>
{ define method ?name (?=self :: ?class, ?params)
?body
end }
end;
3 Comments:
Hello Mike. I apporeciate your showcasing Dylan here. Please continue to do so.
It is starting to look like a language I could enjoy, but I never thought so until reading this blog. And I have read several dylan tutorials.
Thanks!
By Jared Nuzzolillo, at 12:43 PM
best site
http://www.onlinecasino.org.in/
By Online Casino, at 6:39 AM
runescape money
runescape gold
runescape money
runescape gold
wow power leveling
wow powerleveling
Warcraft Power Leveling
Warcraft PowerLeveling
buy runescape gold
buy runescape money
runescape items
runescape gold
runescape money
runescape accounts
runescape gp
dofus kamas
buy dofus kamas
Guild Wars Gold
buy Guild Wars Gold
lotro gold
buy lotro gold
lotro gold
buy lotro gold
lotro gold
buy lotro gold
runescape money
runescape power leveling
runescape money
runescape gold
dofus kamas
cheap runescape money
cheap runescape gold
Hellgate Palladium
Hellgate London Palladium
Hellgate money
Tabula Rasa gold
tabula rasa money
lotro gold
buy lotro gold
Tabula Rasa Credit
Tabula Rasa Credits
Hellgate gold
Hellgate London gold
dofus kamas
buy dofus kamas
wow power leveling
wow powerleveling
Warcraft PowerLeveling
Warcraft Power Leveling
World of Warcraft PowerLeveling
World of Warcraft Power Leveling
runescape power leveling
runescape powerleveling
eve isk
eve online isk
eve isk
eve online isk
血管瘤
肝血管瘤
音乐剧
北京富码电视
富码电视
富码电视台
7天酒店
7天连锁酒店
7天连锁
自清洗过滤器
过滤器
压力开关
压力传感器
流量开关
流量计
液位计
液位开关
温湿度记录仪
风速仪
可燃气体检测仪
By Anonymous, at 10:58 PM
Post a Comment
<< Home