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

Io #12

Open
sdm900 opened this issue Oct 29, 2021 · 8 comments
Open

Io #12

sdm900 opened this issue Oct 29, 2021 · 8 comments
Labels
IDEA IDEA ON IMPROVING THE LANG

Comments

@sdm900
Copy link

sdm900 commented Oct 29, 2021

Crack a tinne (...) returns an open tinnie/file
Swig tinnie to read a line
Sip tinnie to get a character
Wif tinnie to find out where the file Pointer is at

@sdm900
Copy link
Author

sdm900 commented Oct 29, 2021

Chuck tinnie to close
Skull tinnie to read to eof

@bbrk24
Copy link

bbrk24 commented Oct 29, 2021

Somewhat relatedly, GIMME always prints a newline after whatever you give it. Is there any way to write without a trailing newline?

@zackradisic zackradisic added the IDEA IDEA ON IMPROVING THE LANG label Oct 29, 2021
@zackradisic
Copy link
Owner

@sdm900 love the analogy of file handle <-> beer 😂, what about writing to a file? That would answer @bbrk24's question, then we can give an ability to write to stdout without making a new line.

Right now the only thing I can think of that aligns with the analogy of beer is TOP UP.

Also should we make this a part of the syntax or a built-in?

Part of the syntax:

I RECKON stdout = CRACK A TINNIE "stdout";
TOP UP stdout "message without a new line"

Standard library:

IMPOHT ME FUNC TopUp
TopUp(stdout, "message without a new line")

@zackradisic zackradisic mentioned this issue Oct 30, 2021
8 tasks
@sdm900
Copy link
Author

sdm900 commented Nov 2, 2021

Shotgun tinnie for non blocking io

@sdm900
Copy link
Author

sdm900 commented Nov 2, 2021

Funnel tinnie for buffered io

@sdm900
Copy link
Author

sdm900 commented Nov 2, 2021

Carton is the file system.

Gander carton for statfs
Gander tinnie for stat

@sdm900
Copy link
Author

sdm900 commented Nov 2, 2021

Somewhere in this io stuff there has to be a Bob Hawke reference.

@roblogic
Copy link

Need to use BOOFHEAD or DRONGO for something as well

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

No branches or pull requests

4 participants