Comments (5)
Thanks for the feedback. I realise that "<-" is typically prefered to "=", but my preference has come from teaching. AFAIK, there isn't another language that uses "<-". Many people program in another language, C, python, Java, Scala, Javascript, Stan; and switching operator is a pain.
I was teaching R to a bunch of C# programmers a few weeks ago. Their number 1 irritation was "<-"; when I mentioned that "=" did the same job, they loved it.
We'll keep the issue under review before the final version.
from efficientr.
BTW, thanks for the link to your site. Very nice.
from efficientr.
I don't teach my students how to do a proper coding style myself. I teach them about lintr
and then expect them to have clean lints. Also @lintr-bot is well known to all of them.
I interpret the =
for an assignment as a hint that I am looking at beginner code, even though I know some experts use it.
As a C++ programmer, I have no problems using different assignment operators at all, like I also don't have a problem with different bracket placements. Also, Hadley Wickham is a C++ programmer, who hasn't suffered at all.
But, hey, feel free to ignore. It's just a minor detail of a possibly awesome book!
from efficientr.
Here's my take from a teaching perspective: people get really muddled about the assignment issue and it's clear that <-
is a relic to old code. I recently made the switch (following the lead from Colin and discussion for this book) and I can honestly say it's made my life better. Not much. But I save maybe 1/4 a second and finger dexterity each time I assign an object now. + it's WAY easier for teaching.
From a philosophical perspective: be the change you want to see in the world. I want fast-to-type, easy to read code, the style of which adapts over time in the same way that human languages do.
from efficientr.
Thanks for this friendly addition! Well, in the end we do not have to agree about every single thing, which is fine. I then just hope you like my other suggestions better :-)
from efficientr.
Related Issues (20)
- 2.6.2 - Rho interpreter HOT 2
- Chapter 2 footnote references HOT 1
- Update Authors info section HOT 1
- Code including quotation marks within blockquotes HOT 1
- 4.4.1: Issues replicating rdocumentation.org and RSiteSearch results HOT 4
- 4.4.2: Dead reference to Barry Rowlingson's Hadleyverse
- 5.3.1: read_tsv example with unexpected parsing error HOT 6
- 4.5.2: Referencing remotes? HOT 1
- bracket typo HOT 1
- 8.6 CPU `get_datatable` HOT 1
- add arrow/parquet as alternative in Chapter 5 HOT 4
- Superscript to subscript HOT 1
- some typos
- minor wrong code in section 3.2
- there is no "co2.csv" file in "efficient package
- Plot lines missing in figure 6.1
- browse Vignettes HOT 7
- Suspected typo in Chapter 1 HOT 6
- Using deprecated function rbind_all of dplyr package which is no longer supported and code fails HOT 4
- Following example in chapter 7 not possible: source file `monopoly.R` not found HOT 1
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 efficientr.