active-logic / active-logic/uta

Support simple macros

Aperta
#6 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
\(^∀^)メ(^∀^)ノ
Lingua principale
C#
Stelle
3
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Simple macros are intended to workaround C# limitations regarding inheritance

- `structs` do not support inheritance. However the rationale behind this ("Structs are supposed to be small") does not hold. in AL what is seen is multiple structs end up with exactly the same source
- Lack of multiple inheritance. Often, delegation is better. However delegation may run counter to correct API design. A simple example of this is the SAK (Swiss army knife) dilemma, where a set of utility functions needs to be redefined over and over because multiple inheritance is not allowed.

There isn't a goal to provide complex macros here. If that's ever wanted consider integrating the C preprocessor.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.