-
Notifications
You must be signed in to change notification settings - Fork 20
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
Feature: Persistent use (if desired) #85
Comments
Usually I would think a single How about a magic? Something like
To automatically always prepend the contents of this cell to every cell just before running eval. This would also provide a way to add custom operators, etc |
I did not know that. I'll have a look at making grammar and operator persistent by default in that case. |
I made 2/3 in #88. What follow is to prepare the last 1/3 (to share and remember): How (slang, operator): The idea was that whatever you do inside the compiler (sandbox), you cannot change the grammar. You change only some Language Braid variables Future (pragma): The target of the set_pragma is in Cursor, most of them are treated as slang. As shown: for $?LANG.slangs.kv -> $k, $v { say $k } They are discriminated in World But apparently the TOP Grammar is treating really bad my pragmas, at each new parse. List of Non slang pragmas:
|
I see 3 solutions:
|
|
We've just add a similar issue in jupyter-vim client.
Is that overkill ? |
No -- makes total sense -- I was thinking of just starting with |
I'd like to avoid prefixing commands with
use
at each command and have auseall
keyword or something similar to persistently use a module in the sandbox.I'd like to get your opinion before coding: easy code, hard negotiation as always with default parameters.
The text was updated successfully, but these errors were encountered: