Allow binary operators to be used as lambdas #876
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "ghallak/228"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes: #228
Created by: radrow
sum? :p
Created by: radrow
It's sorta awkward that we maintain yet another lists of operators (one in lexer, one in expression parser and this one here)... Maybe there is a nicer way of doing so, so they won't desync?
Also, you don't want to allow
..
operator here, it doesn't make any sense to make it a lambdaCreated by: radrow
It this related or just an occasional fix?
Will change this to
any
.This was an existing bug that nobody has noticed. It didn't allow lambdas to be called directly on arguments (e.g. you can't do
((x) => x))(1)
).I've noticed this when I was trying to do
(+)(1, 2)
and fixed it.Changed it to
any
here642f5a4da3
Disabled
..
here8851629fc7
Created by: radrow
Review: Approved
Created by: hanssv
Review: Approved
Merged by: ghallak at 2022-06-03 09:12:24 UTC