From: Lothar Scholz Date: 2005-03-29T03:33:42+09:00 Subject: Re: Best (Windows) Ruby editor Hello B., BKOb> Lothar Scholz wrote: >> A parser helps only in static typed languages and >> for some very easy refactoring moves. Thats why none of the non image >> script languages haven't good refactoring tools - and will never >> have. BKOb> Can you explain this further, please? BKOb> Some refactorings are not relevant to untyped language (e.g., changing BKOb> the type). Others work just fine on the AST (e.g., rename). What sorts BKOb> of problems do you foresee? This is a typical java -> ruby switcher question :-) If you want rename method call "subscribe" in class "Newspaper" to a method call "register", then how do you know if foo->subscribe(a,b) should be renamed? You can only look at heuristics like: it has two parameters like the subscribe method i want to rename, so i hope it is a call of a Newspaper.subscribe and not of RealEstateContract.subscribe Another question: And how do you find all files where we look for subscribe ? This can be very hard to tell. require is way too dynamic. Think about it and further problems or just search groups.google to find more discussions about the problem. -- Best regards, emailto: scholz at scriptolutions dot com Lothar Scholz http://www.ruby-ide.com CTO Scriptolutions Ruby, PHP, Python IDE 's