-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Tea expression language ideas #865
Comments
The FAQ brought up the http://www.oilshell.org/blog/2021/02/new-faqs.html A bunch of possible ways to write this:
Maybe we can have a keyword in addition to
Note Ubuntu has
Also someone brought this up:
Actually
|
Random idea from https://oilshell.zulipchat.com/#narrow/stream/121540-oil-discuss/topic/left-to-right.20syntax.20ideas Allow Or it could be the more conventional:
Or the
|
Idea: get rid Get rid of Maybe:
|
Related to #950 |
Oil issues moved to #980. This is now low priority |
This experiment is obsolete -- we're now doing a Yaks IR first, with Lispy syntax See #yaks channel on Zulip |
Continued from #835
Tea Language
Semantic changes
??
operator that is likeor
, except it returns the first argument if it's non-null (None
), not iflen(x) == 0
. This matches C semantics.${x:-'default'}
too? That currently doesn't work on integers. It can be$[x ?? 'default']
insteadin
on lists (fixed too many accidentally quadratic bugs). It good for dicts, and maybe acceptable for strings ...Prettier
$[x]
and_ESCAPE
Tagged prefixes for strings. In addition tor'foo'
, maybe we wanthtml'foo'
orhtml"foo"
,sql'foo'
Func[Int, Str => Int]
instead ofFunc[[Int, Str], Int]
maybe optional sigils likepush!(x)
andeven?(i)
New functionality:
=>
for method call, universal function call on first arg type|>
because there seems to be a consensus on this? R jus built in support for it: https://news.ycombinator.com/item?id=25316608where [size > 10 K]
before doing this. That uses a literal Unix pipe, not a function chaining operator.&+
and&*
-- language semantics shouldn't depend on the compiler #824The text was updated successfully, but these errors were encountered: