[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Constructive Criticism and a Question
From: |
Han-Wen Nienhuys |
Subject: |
Re: Constructive Criticism and a Question |
Date: |
Thu, 21 Dec 2006 15:01:02 +0100 |
User-agent: |
Thunderbird 1.5.0.8 (X11/20061107) |
Erik Sandberg escreveu:
> On Thursday 21 December 2006 12:55, Han-Wen Nienhuys wrote:
>> Erik Sandberg escreveu:
>>> BTW, in this case it may be good to register the fraction as its own
>>> argument type, so \tuplets and \tuplet are generic music functions, both
>>> with signature
>>> (tuplet-fraction? music?)
>> it would be cool if we could pull this off, that would make \time generic
>> too.
>
> Hm, if we do this together with the 2:3 syntax change, then we would suddenly
> be able to write:
> \time 4:3
> which would be equivalent to:
> \time 3/4
> That's a bit confusing.
>
> BTW, if we start adding new types, it would be nice to create a new 'type'
> data structure, to be used in function signatures. The data structure would
> contain a type-checking predicate, a name (displayed when type-check fails),
> and perhaps a type ID for the lexer. This would allow more complex types,
> e.g. 'sequential music', 'single note or chord', 'pair of numbers' (as in
> #'(1 . 3)), etc; perhaps the system could be used for
> define-context-properties.scm as well.
be careful. If you introduce type, you will have to introduce subtypes as well:
seq-music is a subtype of music. Before you know, we'll be writing a type
inference engine.
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
LilyPond Software Design
-- Code for Music Notation
http://www.lilypond-design.com
- Re: Constructive Criticism and a Question, (continued)
- Re: Constructive Criticism and a Question, Werner LEMBERG, 2006/12/19
- Re: Constructive Criticism and a Question, Mats Bengtsson, 2006/12/19
- Re: Constructive Criticism and a Question, Frédéric Chiasson, 2006/12/19
- Re: Constructive Criticism and a Question, Werner LEMBERG, 2006/12/19
- Re: Constructive Criticism and a Question, Graham Percival, 2006/12/20
- Re: Constructive Criticism and a Question, Erik Sandberg, 2006/12/21
- Re: Constructive Criticism and a Question, Mats Bengtsson, 2006/12/21
- Re: Constructive Criticism and a Question, Mats Bengtsson, 2006/12/21
- Re: Constructive Criticism and a Question, Han-Wen Nienhuys, 2006/12/21
- Re: Constructive Criticism and a Question, Erik Sandberg, 2006/12/21
- Re: Constructive Criticism and a Question,
Han-Wen Nienhuys <=
- Re: Constructive Criticism and a Question, Erik Sandberg, 2006/12/21
- Re: Constructive Criticism and a Question, Joe Neeman, 2006/12/25
- Re: Constructive Criticism and a Question, Erik Sandberg, 2006/12/27
- Re: Constructive Criticism and a Question, Han-Wen Nienhuys, 2006/12/19
- Re: Constructive Criticism and a Question, Werner LEMBERG, 2006/12/19
- Re: Constructive Criticism and a Question, Eyolf Ostrem, 2006/12/19
- Re: Constructive Criticism and a Question, Paul Scott, 2006/12/19
- Re: Constructive Criticism and a Question, Frédéric Chiasson, 2006/12/19
- Re: Constructive Criticism and a Question, Erik Sandberg, 2006/12/19
- Message not available
- Fwd: Constructive Criticism and a Question, Frédéric Chiasson, 2006/12/19