Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion user defined types
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ian Clarke  
View profile  
 More options Jan 2, 7:51 am
From: "Ian Clarke" <ian.cla...@gmail.com>
Date: Fri, 2 Jan 2009 12:51:19 +0000
Local: Fri, Jan 2 2009 7:51 am
Subject: user defined types
Hi, perhaps I've misunderstood something but does Cat support
user-defined types?  I can't see any obvious equivalent in the spec.
I'm talking about the type of thing that in Haskell would look like:

data Piece = Pawn | Rook | Knight | Bishop | Queen | King

or

data Shape
          = Ellipse Float Float
          | Square Float
          | Polygon [(Float, Float)]

A related question would be whether Cat, or a language implemented on
top of the Cat bytecode can support pattern matching?

Sorry if these are dumb questions :-)

Ian.

--
Ian Clarke
CEO, Uprizer Labs
Email: i...@uprizer.com
Ph: +1 512 422 3588
Fax: +1 512 276 6674


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google