Skip to content

Remove deprecated functions (.!!) and (!!) #599

@ivanperez-keera

Description

@ivanperez-keera

Description

The functions copilot-language:Copilot.Language.Operators.Array.(.!!) and copilot-libraries:Copilot.Library.Utils.(!!) were deprecated due to the introduction of a new, common interface to interact with structures and arrays.

The original functions were deprecated in Copilot 4 and no messages have been received requesting that they be kept in this library.

As per our internal policy of waiting 3 versions from deprecation until a public interface declaration can be removed, these functions can now be removed.

Type

  • Management: remove code deprecated by the introduction of a new feature.

Additional context

Requester

  • Ivan Perez

Method to check presence of bug

Not applicable (not a bug).

Expected result

Running either of the checks above prints a message indicating that the functions imported do not exist.

Running either of the checks above prints a message indicating that the functions imported do not exist. Either of the following should trigger errors:

$ runhaskell <<< 'import Copilot.Language.Operators.Array((.!!)); main = return ()'
$ runhaskell <<< 'import Copilot.Library.Utils ((!!)); main = return ()'

Desired result

Running either of the checks above prints a message indicating that the functions imported do not exist. Either of the following should trigger errors:

$ runhaskell <<< 'import Copilot.Language.Operators.Array((.!!)); main = return ()'
$ runhaskell <<< 'import Copilot.Library.Utils ((!!)); main = return ()'

Proposed solution

Remove the deprecated functions copilot-language:Copilot.Language.Operators.Array.(.!!) and copilot-libraries:Copilot.Library.Utils.(!!) , and any references to them. Adjust documentation accordingly, if needed.

Further notes

None.

Metadata

Metadata

Labels

CR:Status:ClosedAdmin only: Change request that has been completedCR:Type:ManagementAdmin only: Change request for conformance with policies or procedures

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions