Assignment 3 task 3 and 4

Moderator: Konzepte der Programmiersprachen

ahmad.korbesa
Neuling
Neuling
Beiträge: 1
Registriert: 16. Nov 2017 10:10

Assignment 3 task 3 and 4

Beitrag von ahmad.korbesa » 18. Nov 2018 22:40

Hi,

can anyone specifically explain what "written nicely" means in both Task 3 and Task 4 of Assignment 03

does it mean concise? easy to understand? easy to reuse? or something else?

and does it mean the same for functions written in Scala and MFAE?

mirko-koehler
Moderator
Moderator
Beiträge: 66
Registriert: 16. Okt 2017 12:28

Re: Assignment 3 task 3 and 4

Beitrag von mirko-koehler » 19. Nov 2018 16:13

Higher-order functions abstract over computations. Usually, higher-order functions can not be written easily without having some other abstraction of computations.
However, you can think of higher-order functions that are so trivial that they can be written as firstorder-functions, for example one that takes a function as argument but does not use it in its body. These trivial functions can be "written nicely" as higher-order functions.

It means the same for Scala and MFAE.

Antworten

Zurück zu „Konzepte der Programmiersprachen“