Is it possible to merge the range and interval concepts into one thing? Not sure if a good idea, but would resolve the confusion.
 
https://math.stackexchange.com/questions/2056510/what-is-the-mathematical-symbol-for-range
 
It seems that for integer values there is also the notation of {a..b}, which includes both ends.
Maybe we could also add {a..b-1} to exclude the last value, and add the commonly used {0..b-1}, although there is already the shorter <iota> for the latter.
 
29.11.2020, 18:12, "John Benediktsson" <mrj...@gmail.com>:
The common ambiguity between math.ranges and math.intervals has also bothered us. 
 
I did like the syntax aside from that issue that, but we are experimenting with new range syntax:
 
[a..b]
(a..b]
(a..b)
[a..b)
 
What do you think of that instead?
 
Some other variants discussed from other languages:
 
a..b
a...b
a..<b
a..=b
 
What does everyone think? Any feedback?
 
Best,
John.
 
 
On Nov 29, 2020, at 5:56 AM, Alexander Ilin <ajs...@yandex.ru> wrote:
 

Here's the full code for .factor-rc:
 
USING: listener namespaces sequences ;
! Add math.ranges to the Scratchpad vocab of the Listener.
interactive-vocabs [ "math.ranges" suffix ] change-global
 
 
29.11.2020, 16:50, "Alexander Ilin" <ajs...@yandex.ru>:
See the SYMBOL: interactive-vocabs in the basis\listener.factor.
 
29.11.2020, 15:25, "Alexander Ilin" <ajs...@yandex.ru>:
I think you need to somehow edit the vocabs preloaded into the Scratchpad vocab of the Listener.
 
29.11.2020, 12:07, "kevin" <kevinpat...@gmail.com>:
Hello fellow Factor users.
 
Today, I finally became fed up with having to load the math.ranges vocabulary in the listener every time I want to use a word like [a,b]. Especially since it needs to disambiguate with math.intervals and I have to stop and think about which one to pick.
 
I was under the impression that simply going
 
    USE: math.ranges
    save
 
Would save to the default image with math.ranges loaded, but when I exit and start the listener up again, the change does not take.
 
I then figured that maybe I could save a custom image with
 
    "myimage.image" save-image
 
and indeed, it does save a file named myimage.image in the factor directory. Then when I try to invoke factor like
 
    factor -i=myimage.image
 
it complains about not being able to locate the file.
 
I then figured I wouldn't mind waiting for vocabs to load and maybe I could just try loading them in my .factor-rc or .factor-boot-rc, but that doesn't work either. Any ideas on how I can get this to work? Thanks!
,,

_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

 
 
---=====---
Александр
 
,,

_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

 
 
---=====---
Александр
 
,,

_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

 
 
---=====---
Александр
 
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk
,,

_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

 
 
---=====---
Александр
 
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to