pharo-project / pharo

Pharo is a dynamic reflective pure object-oriented language supporting live programming inspired by Smalltalk.
http://pharo.org
Other
1.21k stars 356 forks source link

Deprecation from UI could directly add the automatic transformation code #17257

Open badetitou opened 1 month ago

badetitou commented 1 month ago

When deprecating a method using the UI of Calypso, we would improve the generated template to automatically add the transfomationWith rule.

image

Maybe we do not want to do that because sometimes we want to change the receiver or the order of the arguments. However, it would help to discover the transformationWith feature.

MarcusDenker commented 1 month ago

keep in mind that not every deprecation means that there is a replacement method.

e.g. there was once a version of deprecation that asked immediately for a new name. But that then was unusable when you just wanted to deprecate a method.

So this should be optional.

Ducasse commented 1 month ago

Indeed benoit! Do not hesitate to send a PR. The comment can mention what marcus is saying but always having to look for an example is boring. S