Search the web
Sign In
New User? Sign Up
frink
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How do you spell "interval?"   Message List  
Reply | Forward Message #43 of 257 |
Re: [Frink] How do you spell "interval?"

>   a = new Interval[2,3]
>
>   But that's slightly cumbersome.  So, what notation can we use for
> intervals that's:
>
>   1.) Possible to type on an ordinary keyboard
>   2.) Uses only ASCII characters
>   3.) Unambiguous
>   4.) Doesn't force change of existing syntax.
>   5.) Quick to type
>   6.) Not too visually noisy
>   7.) Visually distinguishable from other constructs    8.) It
> should still kinda look like [2, 3]
....
>   So, who can come up with the best way to write intervals
> concisely?

What about A .. B?

Examples:

for i = 0 .. 100 ; do
fa[i] = f[i] + f[i-1];
done

lunchtime = 12am .. 1pm
if x in lunchtime; then
do_lunchtime_event ;
endif

timeperiods = [ 8am .. 9am, 12pm .. 1pm, 5:30pm .. 6:30pm ];







Mon May 23, 2005 6:34 am

alan_stebbens
Online Now Online Now
Send Email Send Email

Forward
Message #43 of 257 |
Expand Messages Author Sort by Date

I'm working on implementing interval arithmetic in Frink. Interval arithmetic is cool--instead of a number being a single value, an interval can contain a...
Alan Eliasen
aeliasen
Offline Send Email
May 22, 2005
2:26 am

(i'm about to launch into an unfounded ramble through ideas, which may not go anywhere useful. feel free to skip to that much more interesting email from your...
Marcus Downing
shrink_laureate
Offline Send Email
May 22, 2005
11:18 pm

... To paraphrase Kirk's comment about Spock, "your unfounded ramble is as good as another man's well-considered reply." ... Actually, multiplying a scalar by...
Alan Eliasen
aeliasen
Offline Send Email
May 23, 2005
2:59 am

... Ah, i didn't grok what intervals really were. I was thinking of them only in terms of their outer bounds, and simple calculations like + 2. Realizing that...
Marcus Downing
shrink_laureate
Offline Send Email
May 23, 2005
3:33 pm

... What about A .. B? Examples: for i = 0 .. 100 ; do fa[i] = f[i] + f[i-1]; done lunchtime = 12am .. 1pm if x in lunchtime; then do_lunchtime_event ; endif ...
Alan K. Stebbens
alan_stebbens
Online Now Send Email
May 23, 2005
6:34 am

... Marcus Downing also suggested this (and a few similar options) and I addressed it in my last reply. I understand if you didn't plow through that whole...
Alan Eliasen
aeliasen
Offline Send Email
May 23, 2005
5:13 pm

... Hmm... well I'd definitely go with an object interface, just in case you wanted to add probabilities to the intervals next, or maybe define intervals in...
Edward Peschko
esp5@...
Send Email
May 23, 2005
7:58 pm

Wow. A fuzzy calculator. That really would be impressive. ... I did actually wonder about using a syntax like this, if no symbolic one presented itself. I...
Marcus Downing
shrink_laureate
Offline Send Email
May 23, 2005
10:51 pm

... That would be neat, but hard! Actually, maybe not that hard. If I understand the intent correctly, you could do something very similar by defining a few...
Alan Eliasen
aeliasen
Offline Send Email
May 24, 2005
6:59 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help