Used in a Sentence

nameclass

How to use nameclass in a sentence. Live example sentences for nameclass pulled from indexed public discussions.

Editorial note

Are you saying that I can legitimately read contains:: NameClass -> QName -> Bool two ways?

Examples6
Definitions0
Parts of speech1

Quick take

Are you saying that I can legitimately read contains:: NameClass -> QName -> Bool two ways?

Example sentences

1

Are you saying that I can legitimately read contains:: NameClass -> QName -> Bool two ways?

2

Like, contains:: (NameClass, QName) -> Bool And contains:: NameClass -> (QName, Bool)?

3

It's equivalent to either contains:: (NameClass, QName) -> Bool or contains:: NameClass -> (QName -> Bool) In other words, you can treat it as a function taking two arguments, or one function taking one argument and returning another function.

4

I think 'C++ template programming' might be better also:/ The following syntax in Haskell causes a parse error in my brain: contains:: NameClass -> QName -> Bool I really want it to be contains:: (NameClass, QName) -> Bool Or even just contains:: NameClass, QName -> Bool Is it just my problem to get over or do other people have it, or is there syntactic sugar coming to my rescue?

5

As a matter of style, Haskellers tend to avoid writing function like this, and prefer to write functions like contains:: NameClass -> (QName -> Bool) which indicates that "contains" is a function that takes a "NameClass" and returns another function.

Quote examples

1

As a matter of style, Haskellers tend to avoid writing function like this, and prefer to write functions like contains:: NameClass -> (QName -> Bool) which indicates that "contains" is a function that takes a "NameClass" and returns another function.

Frequently asked questions

Short answers drawn from the clearest meanings and examples for this word.

How do you use nameclass in a sentence?

Are you saying that I can legitimately read contains:: NameClass -> QName -> Bool two ways?