Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Haskell Question

Posted on 2002-05-25
2
Medium Priority
?
285 Views
Last Modified: 2011-09-20
Hi
I got a Haskell exam in a few days and doing the pastpaper of it. Since the anwer of it is not given it would be very helpful if anyone could check some of my answer which I am not sure about, and answer the questions which I have no idea...
Thank you very much
asukai



(a) What is a qualified type in Haskell?
My answer:
Qualified type is a type which consist of more than one type. For instance, Integral a=> a-> a is a qualified type where Integral is type class whose element is int and Integer.

(b) What are the types of the following Haskell functions?
(i) one x y = x < y
My answer:
Boolean
(ii) two x y = x + y
Real
(iii) three x y = xy
Real

(iv) four x y = x + + y
List
(v) five x y = x ! ! y
An element of List. Eq. (not sure)
(vi) six x y = x = = y
boolean.

(c) In the context of a functional programming language what is a homomorphism?

No idea.
(a) Discuss the advantages and disadvantages of pure functional programming
languages as compared with other sorts of language.

Advantages:
Good programming practise.
Simpler and shorter code.

Anything else?

Disadvantages:
Not flexible.
Strict Syntax. Need to specify type for each function.
Limited libeary.
It only deals with calculation problem.
Anything else?
0
Comment
Question by:asukai
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
Triskelion earned 200 total points
ID: 7048259
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7515112

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question