pharo icon indicating copy to clipboard operation
pharo copied to clipboard

String>>asDate is not well deprecated

Open Ducasse opened this issue 8 months ago • 4 comments

We should use the transformation facility as in [deprecate](deprecated: on: in: transformWith: - Check senders to see how to use it.

Now better use backwardCompatible: anExplanationString on: date in: version transformWith: aRule

Ducasse avatar Jun 28 '25 17:06 Ducasse

Same as i wrote for asXXX, they are useful

noha avatar Jun 28 '25 20:06 noha

Then people can package them in their own private package. Else they can just use Date readFromString:. This is as simple as this.

Ducasse avatar Jun 29 '25 05:06 Ducasse

My bad. Sometimes I forget that pharo is just a research vehicle, nothing more. Then people can choose another programming environment that tries to be useful and usable. This is as simple as this.

noha avatar Jun 29 '25 07:06 noha

It is not possible to use the transformation facility as user should now provide a pattern.

JMLF avatar Nov 21 '25 15:11 JMLF