in my mind imperative~ languages are full of 'code' variables.
they store encoded knowledge into state variable.
that will then be interpreted by the program.
e.g:
function sort(data, sorting) { case sorting = "num" : ... ; "..." : ... }
other paradigms store logic directly
function sort(data, sorting) { sorting(data[:half]) (+) sorting(data[half:]) }
and.. that's all.
</rant>
Aucun commentaire:
Enregistrer un commentaire