[Pharo-project] call for a deprecate code transformation
Hi guys I would love to have a transformation that take a method and generate the body to deprecate itâ¦ie foo: aPoint body => foo: aPoint self deprecated: 'use xxx' on: 'date' in: #Pharo2.0 body so that we deprecate better method. Any takers? Stef
On 12 avr. 2013, at 10:07, Stéphane Ducasse wrote:
Hi guys
I would love to have a transformation that take a method and generate the body to deprecate itâ¦ie
foo: aPoint
body
=>
foo: aPoint
self deprecated: 'use xxx' on: 'date' in: #Pharo2.0
body
so that we deprecate better method.
Any takers?
Me. I wanted something fancier: when you deprecate a method you attach a transformation rule so that when a deprecated method is executed, the deprecated warning can also propose to rewrite the sender.
Stef
+1 for self-scarring 2013/4/12 Camille Teruel <camille.teruel@gmail.com>
On 12 avr. 2013, at 10:07, Stéphane Ducasse wrote:
Hi guys
I would love to have a transformation that take a method and generate the body to deprecate itâ¦ie
foo: aPoint
body
=>
foo: aPoint
self deprecated: 'use xxx' on: 'date' in: #Pharo2.0
body
so that we deprecate better method.
Any takers?
Me. I wanted something fancier: when you deprecate a method you attach a transformation rule so that when a deprecated method is executed, the deprecated warning can also propose to rewrite the sender.
Stef
Any takers?
Me. I wanted something fancier: when you deprecate a method you attach a transformation rule so that when a deprecated method is executed, the deprecated warning can also propose to rewrite the sender.
yes ;) but you need to general everything automatically :) and you need a solution for when the rewrite engine is not present.
Stef
participants (4)
-
Camille Teruel -
Nicolas Cellier -
stephane ducasse -
Stéphane Ducasse