Skip to content

Hook into platform deprecation mechanism #179

Closed

Description

@marschall

At least Pharo and VASt now offer their custom deprecation mechanisms. It would be great if we could hook into this. Ideally this would allows to take advantage of platform integration features like:

  • Our deprecated methods showing up as deprecated in the IDE.
  • Automatic rewriting of senders.

Unfortunately at least the Pharo implementation does not seem very extensible.

CompiledMethod >> isDeprecated

	^ self sendsAnySelectorOf: #(
			#deprecated:
			#deprecated:transformWith:
			#deprecated:transformWith:when:
			#deprecated:on:in:
			#deprecated:on:in:transformWith:
			#deprecated:on:in:transformWith:when:)

VASt seems to use #deprecated: and #deprecated:in:

Activity

  1. timrowledge commented on Jul 11, 2024

    @timrowledge

    Squeak uses #deprecated: but also rather often #flag: #deprecated in places where actually raising Deprecation warning would cause too much annoyance.

    The latter could be caught by simply adding #deprecated to the above list, if that seems appropriate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions