Comments (3)
Reopening, still room for discussion here
from r.
What is the motivation between the "Duplicated names okay, last instance takes priority"?
This seems to be something not unlikely to cause unintended behaviour / bugs.
I would argue that the f(..args, ..more_args)
call in the lines below should behave just like f(a = 1, b = 2, c = 3, c = 10)
, i.e. result in an Error
args <- (a = 1, b = 2, c = 3)
f <- function(a, b, c) {
a + b + c
}
more_args <- (c = 10)
f(..args, ..more_args)
from r.
Let's say I have the function f = function(...) Reduce(sum, list(...))
and I unintentionally call it with duplicated arguments (using the args
and more_args
definition from the post above): f(..args, ..more_args)
.
In that case I think it is preferable to return an error instead of silently ignoring the c
element in the args
vector.
from r.
Related Issues (20)
- Bug: `if` doesn't return a value
- Indexing Grammar in combination with vector construction using `[...]` causes ambiguous syntax. HOT 9
- standardized_se needs to receive training ids for task HOT 1
- Bug due to some lingering evaluations HOT 2
- Capture invalid syntax HOT 3
- print does not work in the demo repl HOT 1
- for loop should *maybe* return `null` HOT 5
- Bug when assigning to vector subset HOT 1
- Forcing closures should update environment
- Tracking promise expression for substitute HOT 4
- Proposal: partial function evaluation HOT 1
- Object shared references architecture HOT 3
- Allowed Vector Subsets during assignment HOT 2
- Heuristics for materializing vectors HOT 1
- List declaration using paren syntax doesn't force promise evaluation
- Internal Character representation should maybe use `Rc<String>` instead of `String` HOT 1
- Ellipsis is exposed through evaluation environment of functions HOT 5
- Suggestion: ability to wite tests in R HOT 2
- Bug when mutating promise HOT 5
- Suggestion: Abandon named Lists in favor our Hashmaps with value semantics HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from r.