Newsgroups: comp.lang.beta Path: news.daimi.aau.dk!news.uni-c.dk!sunic!uunet!brunix!cs!rv From: rv@cs.brown.edu (rodrigo vanegas) Subject: Re: what is a pattern? In-Reply-To: olevi@daimi.aau.dk's message of 8 Sep 1994 15:41:16 GMT Content-Type: text/plain Message-ID: Sender: news@cs.brown.edu Organization: Dept. of Computer Science, Brown University References: <34n5ad$36s@gort.oit.umass.edu> <34nbas$a8d@belfort.daimi.aau.dk> Mime-Version: 1.0 Date: Thu, 8 Sep 1994 19:55:44 GMT Lines: 27 In article <34nbas$a8d@belfort.daimi.aau.dk>, olevi@daimi.aau.dk (Ole Villumsen) writes: > For starters, think of a pattern as a generic word > for both a class and a procedure or function. This is not all there > is to it, but it will get you started. In Beta, a pattern is > anything starting with (# and ending with #). As a silly example, > write a function that multiplies two numbers: > multiply: (# a,b: @integer; > enter (a,b) > exit a*b > #); Ok, if you explained something, i think i may have missed it. If "pattern" is just a generic word for class, procedure, and function and/or anything starting with "(#" and ending with "#)" then it would seem that lisp has patterns too. After all, Lisp has classes, procedures, and functions, and they all start with "(" and end with ")". So what's the innovation here? How about a slightly more concrete definition? > Yours, > Ole rodrigo