Hope

Hope - функциональный язык программирования, разработанный в начале 1980-х годов; является предшественником языков Miranda и Haskell.

В журнале Byte за август 1985 впервые опубликовано руководство по языку Hope.

Пример программы вычисления факториала на языке Hope:

dec fact : num -> num;
--- fact 0 <= 1;
--- fact n <= n*fact(n-1);

В отличие от языка Haskell, изменение порядка выражений не изменяет поведения программы, так как в том случае, когда выражение подходит под несколько шаблонов, выбирается наиболее специфичный данному выражению шаблон.

Ссылки



<< назад   вперед >>

Look at other dictionaries:

  • Hope — - Xoyп… (Англо-русский словарь Мюллера)
  • Hope — noun Хоуп…
  • hope — I 1. ou надежда (of) vague hopes - смутные надежды to pi oe'shopes o smb., smth. - возлагать надежды на кого-л., что-л. he is the hope ofhis school - школа возлагает на него большие надежды - be past hope - bebeyod hope Sy: see…
  • hope chest — noun сундук с приданым…
  • hope — See: CROSS ONE'S HEART or CROSS ONE'S HEART AND HOPE TO DIE, IN HOPES.… (Словарь американских идиом)
  • hope against hope — {v. phr.} To try to hope whe thigs look black; hold to hope i bad trouble. /The mother cotiued to hope agaist hope although the plae was hours late./ /Jae hoped agaist hope that Joe would call…
  • hope — See: CROSS ONE'S HEART or CROSS ONE'S HEART AND HOPE TO DIE, IN HOPES.…
  • hope against hope — {v. phr.} To try to hope whe thigs look black; hold to hope i bad trouble. /The mother cotiued to hope agaist hope although the plae was hours late./ /Jae hoped agaist hope that Joe would call…
  • A forlorn hope — Forlor For lor", a. [OE., p. p. of forlese to lose utterly, AS. forle['o]sa (p. p. forlore); pref. for- + le['o]sa (i comp.) to lose; cf. D. verlieze to lose, G. verliere, Sw. f["o]rlora, Da. forlore, Goth. fraliusa to lose. See… (The Collaborative International Dictionary of English)
  • Hope — Hope, n. [Cf. Icel. h[ o]p a small bay or inlet.] 1. A sloping plain between mountain ridges. [Obs.] [1913 Webster] 2. A small bay; an inlet; a haven. [Scot.] --Jamieson. [1913 Webster]…
  • Hope — Hope, . [AS., aki to D. hoop, hope, Sw. hopp, Da. haab, MHG. hoffe. Hope i forlor hope is differet word. See Forlor hope, uder {Forlor}.] 1. A desire of some good, accompaied with a expectatio of obtaiig it, or a belief that…