eiffel-community / eiffel-community/eiffel-pythonlib

Remove context on callbacks

Aperta
#20 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Python
Stelle
8
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Description

We always call the callbacks with the event object and the context in which this event was sent.
This is a legacy feature that was used when prototyping the eiffellib and should be removed as it does not serve any really good purpose other than clutter in the callbacks.

Note that we need to start by deprecating it and then remove it.

### Motivation

I have found no need for this feature at all and I don't see any real need for it anywhere else.
If there is a need for something like this, then we should instead add a utility module to eiffellib.
For example a function for fetching a link value from an event (get_link("context")).

### Exemplification

Less unnecessary clutter in callbacks.

### Benefits

Less unnecessary clutter in callbacks.

### Possible Drawbacks

Removing this outright will break a lot of tools that rely on it.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.