Le Functional Programming, abrégé FP, est un langage créé par John Backus en 1977 dans son article Can programming be liberated from the von Neumann style ? : a functional style and its algebra of programs , en français : « La programmation peut-elle se libérer du style de von Neumann ? : un style fonctionnel et son algèbre des programmes ».

La fonction factorielle s'y écrit :

Def fact = eq0 -> ~1 ; * o [ id, fact o sub1 ]

avec :

Def eq0 = eq o [ id, ~0 ]

Def sub1 = - o [ id, ~1 ]

Vue d'ensemble

modifier

Il existe plusieurs types de valeurs atomiques : booléens, entiers (positifs), caractères, symboles...

Étant donné des valeurs x1, …, xn, la suite <x1, …, xn> est elle-même une valeur pour le langage.

⊥ (« antitruc ») est la valeur « indéfini » ; elle est absorbante par formation de suite : si une suite comporte la valeur ⊥, alors elle est évaluée à ⊥.

<x1, …, ⊥, …, xn> = ⊥

Une fonction f transforme une valeur x en une autre, dénotée f:x.

Toute fonction est stricte (en), c'est-à-dire que si x s'évalue à ⊥, alors f:x = ⊥.

Fonctionnelles

modifier

Une fonctionnelle est une fonction opérant sur d'autres fonctions.

Exemples :

  • unit ;
  • composition ;
  • construction ;
  • condition ;
  • apply-to-all ;
  • insert-right ;
  • insert-left.

Voir aussi

modifier

Bibliographie

modifier

Liens externes

modifier

📚 Artikel Terkait di Wikipedia

Journal of Functional Programming

correspondants. Pour les articles homonymes, voir JFP. Journal of Functional Programming (JFP) est une revue scientifique spécialisée dans le domaine de

Caml

Aspect-oriented Functional Programming Language », Proceedings of the ACM SIGPLAN International Conference on Functional Programming (ICFP), vol. 40,

Théorie des langages de programmation

Principles of Programming Languages (POPL), Programming Language Design and Implementation (PLDI), l'International Conference on Functional Programming (ICFP)

Liste de langages de programmation

Balise Aikido Alef Algebraic Logic Functional programming language (en) Algol 60 Algol 68 Algol W Alice (programming language) (en) Ambi Amiga E (en) AML

Haskell

n'encourageait pas les contributions et à la conférence FPCA '87 (Functional Programming Languages and Computer Architecture, se traduisant par langages

FP

l'époque coloniale ; FrontPage, un logiciel de création de page Web ; Functional Programming, un langage de programmation créé par John Backus en 1977 ; Canon

Racket (langage)

Functional Programming. Findler, R. B.; Flatt, M. (2004). "Slideshow: Functional Presentations". International Conference on Functional Programming.

Anamorphisme

d'anamorphisme dans le contexte de la programmation fut l'œuvre Functional Programming with Bananas, Lenses, Envelopes and Barbed Wire, par Erik Meijer (en)