Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Over monad with noun left argument #170

Closed
tavmem opened this issue Dec 20, 2012 · 6 comments
Closed

Over monad with noun left argument #170

tavmem opened this issue Dec 20, 2012 · 6 comments
Labels

Comments

@tavmem
Copy link
Collaborator

tavmem commented Dec 20, 2012

in k3.2
("abcd";"efgh") / 1 2
is
"g"

in kona (on a Pentium4) it is
index error

in kona (on Cygwin) it is
("abcd"
"efgh")

I have not yet tried it with kona on a Mac

@tavmem
Copy link
Collaborator Author

tavmem commented Jan 6, 2013

Tried it again in all 3 environments:

kona gives
index error
on Mac, Pentium4, and Cygwin.

@tavmem
Copy link
Collaborator Author

tavmem commented Jan 6, 2013

Actually, it is somewhat more complicated:

With k3.2
("abcd";"efgh")/1 2 is "g" , but
("abcd";"efgh") / 1 2 is
("abcd"
"efgh")

With kona on Gentoo/Pentium4 and on Cygwin
("abcd";"efgh")/1 2 is index error, but
("abcd";"efgh") / 1 2 is also
("abcd"
"efgh")

Do we want different results in kona with/without whitespace?

@kevinlawler
Copy link
Owner

Whenever there's whitespace before it / denotes the start of a comment (inclusive). So we can ignore those cases.

@tavmem
Copy link
Collaborator Author

tavmem commented Jan 7, 2013

This issue name is not correct in that it is "overMonad" that gets called when executing ("abcd";"efgh")/1 2 fixed

@tavmem
Copy link
Collaborator Author

tavmem commented Jan 8, 2013

Just a general FYI for any kona user.
Fixing this issue (though interesting) is probably moot since anyone needing the functionality similar to
("abcd";"efgh")/1 2
already has that functionality using
("abcd";"efgh") . 1 2

@tavmem
Copy link
Collaborator Author

tavmem commented Jan 9, 2013

Variations:
("abcd";"efgh")/1 2
index error

("abcd';"efgh")/0 1
type error

(0 1 2;3 4 5)/0 1
index error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants